| 1 | /* Include files */ |
| 2 | |
| 3 | #include "simstruc.h" |
| 4 | #include "fixedpoint.h" |
| 5 | #include "simtarget/slSimTgtLogLoadBlocksSfcnBridge.h" |
| 6 | #include "GCU_Model_genCode_sfun.h" |
| 7 | #include "c1_GCU_Model_genCode.h" |
| 8 | #define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber) |
| 9 | #define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber) |
| 10 | #include "GCU_Model_genCode_sfun_debug_macros.h" |
| 11 | #define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(S); |
| 12 | |
| 13 | static void chart_debug_initialization(SimStruct *S, unsigned int |
| 14 | fullDebuggerInitialization); |
| 15 | static void chart_debug_initialize_data_addresses(SimStruct *S); |
| 16 | static const mxArray* sf_opaque_get_hover_data_for_msg(void *chartInstance, |
| 17 | int32_T msgSSID); |
| 18 | |
| 19 | /* Type Definitions */ |
| 20 | |
| 21 | /* Named Constants */ |
| 22 | #define c1_event_GearshiftUp (2) |
| 23 | #define c1_event_GearshiftDown (0) |
| 24 | #define c1_event_GearshiftSetNeutral (1) |
| 25 | #define CALL_EVENT (-1) |
| 26 | #define c1_IN_NO_ACTIVE_CHILD ((uint8_T)0U) |
| 27 | #define c1_IN_ACCELERATION ((uint8_T)1U) |
| 28 | #define c1_IN_ACCELERATION_PID ((uint8_T)2U) |
| 29 | #define c1_IN_AUTOCROSS ((uint8_T)3U) |
| 30 | #define c1_IN_INIT ((uint8_T)4U) |
| 31 | #define c1_IN_MANUAL_MODES ((uint8_T)5U) |
| 32 | #define c1_IN_ENDURANCE ((uint8_T)1U) |
| 33 | #define c1_IN_SKIDPAD ((uint8_T)2U) |
| 34 | #define c1_IN_ACC ((uint8_T)1U) |
| 35 | #define c1_IN_DEFAULT ((uint8_T)2U) |
| 36 | #define c1_IN_ACTIVE ((uint8_T)1U) |
| 37 | #define c1_IN_STOPPING ((uint8_T)2U) |
| 38 | #define c1_IN_READY ((uint8_T)1U) |
| 39 | #define c1_IN_RELEASING ((uint8_T)2U) |
| 40 | #define c1_IN_RUNNING ((uint8_T)3U) |
| 41 | #define c1_IN_START ((uint8_T)4U) |
| 42 | #define c1_IN_START_RELEASE ((uint8_T)5U) |
| 43 | #define c1_b_IN_DEFAULT ((uint8_T)1U) |
| 44 | #define c1_IN_LAUNCH ((uint8_T)2U) |
| 45 | #define c1_IN_LAUNCH0 ((uint8_T)2U) |
| 46 | #define c1_IN_RELEASE ((uint8_T)2U) |
| 47 | #define c1_IN_RPM_LIMITER ((uint8_T)3U) |
| 48 | #define c1_b_IN_RUNNING ((uint8_T)4U) |
| 49 | #define c1_b_IN_START ((uint8_T)5U) |
| 50 | #define c1_IN_NEUTRAL ((uint8_T)1U) |
| 51 | #define c1_IN_NO_NEUTRAL ((uint8_T)2U) |
| 52 | #define c1_IN_SET_NEUTRAL ((uint8_T)3U) |
| 53 | #define c1_IN_UNSET_NEUTRAL ((uint8_T)4U) |
| 54 | #define c1_IN_DOWNSHIFTING ((uint8_T)1U) |
| 55 | #define c1_IN_DOWN_END ((uint8_T)2U) |
| 56 | #define c1_IN_IDLE ((uint8_T)3U) |
| 57 | #define c1_IN_UPSHIFTING ((uint8_T)5U) |
| 58 | #define c1_IN_UP_END ((uint8_T)6U) |
| 59 | #define c1_IN_UP_BRAKE ((uint8_T)1U) |
| 60 | #define c1_IN_UP_PUSH ((uint8_T)2U) |
| 61 | #define c1_IN_UP_REBOUND ((uint8_T)3U) |
| 62 | #define c1_IN_UP_START ((uint8_T)4U) |
| 63 | #define c1_IN_Default ((uint8_T)1U) |
| 64 | #define c1_IN_SettingNeutral ((uint8_T)2U) |
| 65 | #define c1_IN_CutOff ((uint8_T)1U) |
| 66 | #define c1_b_IN_Default ((uint8_T)2U) |
| 67 | #define c1_IN_DOWN_BRAKE ((uint8_T)1U) |
| 68 | #define c1_IN_DOWN_PUSH ((uint8_T)2U) |
| 69 | #define c1_IN_DOWN_REBOUND ((uint8_T)3U) |
| 70 | #define c1_IN_DOWN_START ((uint8_T)4U) |
| 71 | #define c1_IN_ChangeClutch ((uint8_T)1U) |
| 72 | #define c1_b_IN_SettingNeutral ((uint8_T)3U) |
| 73 | #define c1_IN_SEND ((uint8_T)1U) |
| 74 | #define c1_IN_WAIT ((uint8_T)2U) |
| 75 | #define c1_c_IN_START ((uint8_T)1U) |
| 76 | #define c1_IN_STOP ((uint8_T)2U) |
| 77 | #define c1_b_IN_WAIT ((uint8_T)3U) |
| 78 | #define c1_IN_SCAN ((uint8_T)1U) |
| 79 | #define c1_IN_DISABLE ((uint8_T)1U) |
| 80 | #define c1_IN_ENABLE ((uint8_T)2U) |
| 81 | #define c1_const_GEAR_COMMAND_NEUTRAL_UP ((uint16_T)50U) |
| 82 | #define c1_const_GEAR_COMMAND_NEUTRAL_DOWN ((uint16_T)100U) |
| 83 | #define c1_const_GEAR_COMMAND_UP ((uint16_T)400U) |
| 84 | #define c1_const_GEAR_COMMAND_DOWN ((uint16_T)200U) |
| 85 | #define c1_const_AAC_WORK_RATE_ms ((uint16_T)25U) |
| 86 | #define c1_const_DEF_RAMP_START (50) |
| 87 | #define c1_const_DEF_RAMP_END (0) |
| 88 | #define c1_const_DEF_RAMP_TIME (250) |
| 89 | #define c1_const_DEF_RPM_LIMIT_1_2 (11000) |
| 90 | #define c1_const_DEF_RPM_LIMIT_2_3 (11000) |
| 91 | #define c1_const_DEF_RPM_LIMIT_3_4 (11000) |
| 92 | #define c1_const_DEF_RPM_LIMIT_4_5 (11000) |
| 93 | #define c1_const_DEF_SPEED_LIMIT_1_2 (46) |
| 94 | #define c1_const_DEF_SPEED_LIMIT_2_3 (61) |
| 95 | #define c1_const_DEF_SPEED_LIMIT_3_4 (77) |
| 96 | #define c1_const_DEF_SPEED_LIMIT_4_5 (113) |
| 97 | #define c1_const_ACC_CODE ((uint16_T)1U) |
| 98 | #define c1_const_AUTOX_WORK_RATE_ms ((uint16_T)25U) |
| 99 | #define c1_const_data (0.0) |
| 100 | |
| 101 | /* Variable Declarations */ |
| 102 | |
| 103 | /* Variable Definitions */ |
| 104 | static real_T _sfTime_; |
| 105 | static const char * c1_sv0[13] = { "RAMP_START", "RAMP_END", "RAMP_TIME", |
| 106 | "RPM_LIMIT_1_2", "RPM_LIMIT_2_3", "RPM_LIMIT_3_4", "RPM_LIMIT_4_5", |
| 107 | "SPEED_LIMIT_1_2", "SPEED_LIMIT_2_3", "SPEED_LIMIT_3_4", "SPEED_LIMIT_4_5", |
| 108 | "TPS_START_LIMIT", "END_GEAR" }; |
| 109 | |
| 110 | static const int32_T c1_iv0[13] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; |
| 111 | |
| 112 | static const char * c1_sv1[13] = { "AUTOX_RAMP_START", "AUTOX_RAMP_END", |
| 113 | "AUTOX_RAMP_TIME", "AUTOX_RPM_LIMIT_1_2", "AUTOX_RPM_LIMIT_2_3", |
| 114 | "AUTOX_RPM_LIMIT_3_4", "AUTOX_RPM_LIMIT_4_5", "AUTOX_SPEED_LIMIT_1_2", |
| 115 | "AUTOX_SPEED_LIMIT_2_3", "AUTOX_SPEED_LIMIT_3_4", "AUTOX_SPEED_LIMIT_4_5", |
| 116 | "AUTOX_TPS_START_LIMIT", "AUTOX_END_GEAR" }; |
| 117 | |
| 118 | /* Function Declarations */ |
| 119 | static void c1_sdiInitialize(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 120 | static void c1_sdiTerminate(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 121 | static void initialize_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 122 | *chartInstance); |
| 123 | static void initialize_params_c1_GCU_Model_genCode |
| 124 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 125 | static void enable_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 126 | *chartInstance); |
| 127 | static void disable_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 128 | *chartInstance); |
| 129 | static void c1_update_debugger_state_c1_GCU_Model_genCode |
| 130 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 131 | static const mxArray *get_sim_state_c1_GCU_Model_genCode |
| 132 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 133 | static void set_sim_state_c1_GCU_Model_genCode |
| 134 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, const mxArray *c1_st); |
| 135 | static void c1_set_sim_state_side_effects_c1_GCU_Model_genCode |
| 136 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 137 | static void finalize_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 138 | *chartInstance); |
| 139 | static void sf_gateway_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 140 | *chartInstance); |
| 141 | static void mdl_start_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct * |
| 142 | chartInstance); |
| 143 | static void c1_enter_internal_c1_GCU_Model_genCode |
| 144 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 145 | static void c1_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 146 | *chartInstance); |
| 147 | static void initSimStructsc1_GCU_Model_genCode |
| 148 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 149 | static void c1_enter_atomic_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct |
| 150 | *chartInstance); |
| 151 | static void c1_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 152 | static void c1_exit_internal_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct |
| 153 | *chartInstance); |
| 154 | static void c1_INIT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 155 | static void c1_enter_atomic_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct |
| 156 | *chartInstance); |
| 157 | static void c1_enter_internal_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct * |
| 158 | chartInstance); |
| 159 | static void c1_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 160 | static void c1_exit_internal_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct |
| 161 | *chartInstance); |
| 162 | static void c1_ACC(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 163 | static void c1_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 164 | static void c1_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 165 | *chartInstance); |
| 166 | static void c1_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 167 | static void c1_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 168 | *chartInstance); |
| 169 | static void c1_START_RELEASE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 170 | static void c1_RELEASING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 171 | static void c1_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 172 | static void c1_AUTOCROSS(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 173 | static void c1_exit_internal_AUTOCROSS(SFc1_GCU_Model_genCodeInstanceStruct |
| 174 | *chartInstance); |
| 175 | static void c1_LAUNCH(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 176 | static void c1_b_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 177 | static void c1_b_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 178 | *chartInstance); |
| 179 | static void c1_b_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 180 | static void c1_b_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 181 | *chartInstance); |
| 182 | static void c1_b_START_RELEASE(SFc1_GCU_Model_genCodeInstanceStruct |
| 183 | *chartInstance); |
| 184 | static void c1_b_RELEASING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 185 | static void c1_b_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 186 | static void c1_enter_internal_ACCELERATION_PID |
| 187 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 188 | static void c1_ACCELERATION_PID(SFc1_GCU_Model_genCodeInstanceStruct |
| 189 | *chartInstance); |
| 190 | static void c1_exit_internal_ACCELERATION_PID |
| 191 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 192 | static void c1_LAUNCH0(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 193 | static void c1_c_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 194 | static void c1_c_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 195 | *chartInstance); |
| 196 | static void c1_c_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 197 | static void c1_c_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 198 | *chartInstance); |
| 199 | static void c1_READY(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 200 | static void c1_c_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 201 | static void c1_NEUTRAL_STATE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 202 | static void c1_GEARSHIFT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 203 | static void c1_UPSHIFTING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 204 | static void c1_exit_internal_UP_REBOUND(SFc1_GCU_Model_genCodeInstanceStruct |
| 205 | *chartInstance); |
| 206 | static void c1_exit_internal_UP_PUSH(SFc1_GCU_Model_genCodeInstanceStruct |
| 207 | *chartInstance); |
| 208 | static void c1_UP_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 209 | static void c1_exit_internal_UP_START(SFc1_GCU_Model_genCodeInstanceStruct |
| 210 | *chartInstance); |
| 211 | static void c1_IDLE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 212 | static void c1_DOWNSHIFTING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 213 | static void c1_DOWN_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 214 | static void c1_exit_internal_DOWN_START(SFc1_GCU_Model_genCodeInstanceStruct |
| 215 | *chartInstance); |
| 216 | static void c1_exit_internal_DOWN_BRAKE(SFc1_GCU_Model_genCodeInstanceStruct |
| 217 | *chartInstance); |
| 218 | static void c1_START_ENGINE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 219 | static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T |
| 220 | c1_chartNumber, uint32_T c1_instanceNumber); |
| 221 | static void c1_checkClutch(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 222 | static void c1_checkShift(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 223 | static void c1_aacCheckShift(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 224 | static int32_T c1_getAacParam(SFc1_GCU_Model_genCodeInstanceStruct |
| 225 | *chartInstance, c1_acc_params c1_index); |
| 226 | static void c1_autoXCheckShift(SFc1_GCU_Model_genCodeInstanceStruct |
| 227 | *chartInstance); |
| 228 | static int32_T c1_getAutoXParam(SFc1_GCU_Model_genCodeInstanceStruct |
| 229 | *chartInstance, c1_autoX_params c1_index); |
| 230 | static void c1_b_autoXCheckShift(SFc1_GCU_Model_genCodeInstanceStruct |
| 231 | *chartInstance); |
| 232 | static int32_T c1_Gearshift_getTime(SFc1_GCU_Model_genCodeInstanceStruct |
| 233 | *chartInstance); |
| 234 | static void c1_Clutch_setValue(SFc1_GCU_Model_genCodeInstanceStruct |
| 235 | *chartInstance, uint8_T c1_setValue); |
| 236 | static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData); |
| 237 | static int32_T c1_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 238 | *chartInstance, const mxArray *c1_b_sfEvent, const char_T *c1_identifier); |
| 239 | static int32_T c1_b_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 240 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 241 | static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 242 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 243 | static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void |
| 244 | *c1_inData); |
| 245 | static uint8_T c1_c_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 246 | *chartInstance, const mxArray *c1_b_tp_MODES, const char_T *c1_identifier); |
| 247 | static uint8_T c1_d_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 248 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 249 | static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 250 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 251 | static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void |
| 252 | *c1_inData); |
| 253 | static void c1_e_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 254 | *chartInstance, const mxArray *c1_b_lastModeCom, const char_T *c1_identifier, |
| 255 | uint16_T c1_y[2]); |
| 256 | static void c1_f_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 257 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, |
| 258 | uint16_T c1_y[2]); |
| 259 | static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 260 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 261 | static const mxArray *c1_d_sf_marshallOut(void *chartInstanceVoid, void |
| 262 | *c1_inData); |
| 263 | static const mxArray *c1_e_sf_marshallOut(void *chartInstanceVoid, void |
| 264 | *c1_inData); |
| 265 | static uint16_T c1_g_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 266 | *chartInstance, const mxArray *c1_b_stateFb, const char_T *c1_identifier); |
| 267 | static uint16_T c1_h_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 268 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 269 | static void c1_d_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 270 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 271 | static const mxArray *c1_f_sf_marshallOut(void *chartInstanceVoid, void |
| 272 | *c1_inData); |
| 273 | static const mxArray *c1_g_sf_marshallOut(void *chartInstanceVoid, void |
| 274 | *c1_inData); |
| 275 | static const mxArray *c1_h_sf_marshallOut(void *chartInstanceVoid, void |
| 276 | *c1_inData); |
| 277 | static const mxArray *c1_i_sf_marshallOut(void *chartInstanceVoid, void |
| 278 | *c1_inData); |
| 279 | static const mxArray *c1_j_sf_marshallOut(void *chartInstanceVoid, void |
| 280 | *c1_inData); |
| 281 | static uint32_T c1_i_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 282 | *chartInstance, const mxArray *c1_b_pidCounter, const char_T *c1_identifier); |
| 283 | static uint32_T c1_j_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 284 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 285 | static void c1_e_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 286 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 287 | static const mxArray *c1_k_sf_marshallOut(void *chartInstanceVoid, void |
| 288 | *c1_inData); |
| 289 | static void c1_k_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 290 | *chartInstance, const mxArray *c1_b_lastTryShift, const char_T *c1_identifier, |
| 291 | uint16_T c1_y[2]); |
| 292 | static void c1_l_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 293 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, |
| 294 | uint16_T c1_y[2]); |
| 295 | static void c1_f_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 296 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 297 | static real_T c1_m_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 298 | *chartInstance, const mxArray *c1_b_aac_clutchValue, const char_T |
| 299 | *c1_identifier); |
| 300 | static real_T c1_n_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 301 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 302 | static void c1_g_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 303 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 304 | static const mxArray *c1_l_sf_marshallOut(void *chartInstanceVoid, void |
| 305 | *c1_inData); |
| 306 | static boolean_T c1_o_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 307 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 308 | static void c1_h_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 309 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 310 | static const mxArray *c1_m_sf_marshallOut(void *chartInstanceVoid, void |
| 311 | *c1_inData); |
| 312 | static c1_acc_params c1_p_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct * |
| 313 | chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 314 | static void c1_i_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 315 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 316 | static const mxArray *c1_n_sf_marshallOut(void *chartInstanceVoid, void |
| 317 | *c1_inData); |
| 318 | static c1_autoX_params c1_q_emlrt_marshallIn |
| 319 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, const mxArray *c1_u, |
| 320 | const emlrtMsgIdentifier *c1_parentId); |
| 321 | static void c1_j_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 322 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData); |
| 323 | static void c1_r_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 324 | *chartInstance, const mxArray *c1_u); |
| 325 | static const mxArray *c1_s_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 326 | *chartInstance, const mxArray *c1_b_setSimStateSideEffectsInfo, const char_T |
| 327 | *c1_identifier); |
| 328 | static const mxArray *c1_t_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 329 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId); |
| 330 | static const mxArray *sf_get_hover_data_for_msg |
| 331 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, int32_T c1_ssid); |
| 332 | static void c1_init_sf_message_store_memory(SFc1_GCU_Model_genCodeInstanceStruct |
| 333 | *chartInstance); |
| 334 | static int32_T c1_div_nzp_s32(SFc1_GCU_Model_genCodeInstanceStruct |
| 335 | *chartInstance, int32_T c1_numerator, int32_T c1_denominator, uint32_T |
| 336 | c1_ssid_src_loc, int32_T c1_offset_src_loc, int32_T c1_length_src_loc); |
| 337 | static int32_T c1__s32_add__(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, |
| 338 | int32_T c1_b, int32_T c1_c, uint32_T c1_ssid_src_loc, int32_T |
| 339 | c1_offset_src_loc, int32_T c1_length_src_loc); |
| 340 | static int32_T c1__s32_minus__(SFc1_GCU_Model_genCodeInstanceStruct |
| 341 | *chartInstance, int32_T c1_b, int32_T c1_c, uint32_T c1_ssid_src_loc, int32_T |
| 342 | c1_offset_src_loc, int32_T c1_length_src_loc); |
| 343 | static uint8_T c1__u8_s32_(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, |
| 344 | int32_T c1_b, uint32_T c1_ssid_src_loc, int32_T c1_offset_src_loc, int32_T |
| 345 | c1_length_src_loc); |
| 346 | static void c1_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 347 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 348 | int32_T c1_streamedData); |
| 349 | static void c1_b_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 350 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 351 | void *c1_streamedData); |
| 352 | static void c1_c_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 353 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 354 | int32_T c1_streamedData); |
| 355 | static void c1_d_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 356 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 357 | void *c1_streamedData); |
| 358 | static void init_test_point_addr_map(SFc1_GCU_Model_genCodeInstanceStruct |
| 359 | *chartInstance); |
| 360 | static void **get_test_point_address_map(SFc1_GCU_Model_genCodeInstanceStruct |
| 361 | *chartInstance); |
| 362 | static rtwCAPI_ModelMappingInfo *get_test_point_mapping_info |
| 363 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 364 | static void **get_dataset_logging_obj_vector |
| 365 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance); |
| 366 | static void init_dsm_address_info(SFc1_GCU_Model_genCodeInstanceStruct |
| 367 | *chartInstance); |
| 368 | static void init_simulink_io_address(SFc1_GCU_Model_genCodeInstanceStruct |
| 369 | *chartInstance); |
| 370 | |
| 371 | /* Function Definitions */ |
| 372 | static void c1_sdiInitialize(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 373 | { |
| 374 | uint32_T c1_b[79] = { 0U, 418U, 820U, 434U, 538U, 545U, 544U, 514U, 543U, 547U, |
| 375 | 515U, 821U, 1157U, 1091U, 2174U, 2182U, 2192U, 2238U, 2848U, 2193U, 2191U, |
| 376 | 2223U, 951U, 952U, 974U, 985U, 999U, 1025U, 1002U, 998U, 1001U, 1028U, 429U, |
| 377 | 727U, 729U, 728U, 31U, 36U, 32U, 34U, 35U, 1U, 697U, 17U, 410U, 409U, 15U, |
| 378 | 16U, 14U, 2037U, 406U, 399U, 18U, 5U, 7U, 693U, 12U, 10U, 423U, 422U, 11U, |
| 379 | 390U, 391U, 9U, 385U, 383U, 13U, 479U, 482U, 483U, 494U, 929U, 932U, 940U, |
| 380 | 946U, 944U, 1069U, 1070U, 1072U }; |
| 381 | |
| 382 | uint32_T c1_c[89] = { 123U, 834U, 443U, 485U, 524U, 680U, 715U, 799U, 833U, |
| 383 | 837U, 925U, 1044U, 1060U, 1067U, 1073U, 1083U, 1085U, 1183U, 1184U, 1185U, |
| 384 | 1186U, 1187U, 1188U, 1189U, 1191U, 1839U, 1891U, 1894U, 1904U, 2004U, 2851U, |
| 385 | 627U, 681U, 1043U, 1063U, 643U, 644U, 645U, 646U, 631U, 632U, 633U, 634U, |
| 386 | 537U, 550U, 561U, 563U, 564U, 698U, 699U, 700U, 702U, 704U, 705U, 706U, 707U, |
| 387 | 708U, 709U, 710U, 754U, 568U, 569U, 957U, 958U, 959U, 960U, 961U, 1031U, |
| 388 | 1032U, 2169U, 2170U, 2171U, 2172U, 2173U, 2239U, 2225U, 2226U, 45U, 437U, |
| 389 | 164U, 1889U, 1890U, 1892U, 501U, 950U, 484U, 488U, 938U, 1068U }; |
| 390 | |
| 391 | const char * c1_d[6] = { "None", "ACCELERATION", "ACCELERATION_PID", |
| 392 | "AUTOCROSS", "INIT", "MANUAL_MODES" }; |
| 393 | |
| 394 | int32_T c1_e[6] = { 0, 1, 2, 3, 4, 5 }; |
| 395 | |
| 396 | const char * c1_f[25] = { "None", "INIT", "ENDURANCE", "SKIDPAD", "DEFAULT", |
| 397 | "START", "READY", "START_RELEASE", "RELEASING", "RUNNING", "STOPPING", |
| 398 | "DEFAULT", "START", "READY", "RELEASE", "RPM_LIMITER", "RUNNING", "STOPPING", |
| 399 | "DEFAULT", "START", "READY", "START_RELEASE", "RELEASING", "RUNNING", |
| 400 | "STOPPING" }; |
| 401 | |
| 402 | int32_T c1_g[25] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
| 403 | 17, 18, 19, 20, 21, 22, 23, 24 }; |
| 404 | |
| 405 | const char * c1_h[3] = { "None", "ACC", "DEFAULT" }; |
| 406 | |
| 407 | int32_T c1_i[3] = { 0, 1, 2 }; |
| 408 | |
| 409 | const char * c1_j[8] = { "None", "DEFAULT", "START", "READY", "START_RELEASE", |
| 410 | "RELEASING", "RUNNING", "STOPPING" }; |
| 411 | |
| 412 | int32_T c1_k[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; |
| 413 | |
| 414 | const char * c1_l[3] = { "None", "ACTIVE", "STOPPING" }; |
| 415 | |
| 416 | int32_T c1_m[3] = { 0, 1, 2 }; |
| 417 | |
| 418 | const char * c1_n[7] = { "None", "START", "READY", "START_RELEASE", |
| 419 | "RELEASING", "RUNNING", "STOPPING" }; |
| 420 | |
| 421 | int32_T c1_o[7] = { 0, 1, 2, 3, 4, 5, 6 }; |
| 422 | |
| 423 | const char * c1_p[6] = { "None", "READY", "RELEASING", "RUNNING", "START", |
| 424 | "START_RELEASE" }; |
| 425 | |
| 426 | int32_T c1_q[6] = { 0, 1, 2, 3, 4, 5 }; |
| 427 | |
| 428 | const char * c1_r[6] = { "None", "START", "READY", "START_RELEASE", |
| 429 | "RELEASING", "RUNNING" }; |
| 430 | |
| 431 | int32_T c1_s[6] = { 0, 1, 2, 3, 4, 5 }; |
| 432 | |
| 433 | const char * c1_t[3] = { "None", "DEFAULT", "LAUNCH0" }; |
| 434 | |
| 435 | int32_T c1_u[3] = { 0, 1, 2 }; |
| 436 | |
| 437 | const char * c1_v[8] = { "None", "DEFAULT", "START", "READY", "RELEASE", |
| 438 | "RPM_LIMITER", "RUNNING", "STOPPING" }; |
| 439 | |
| 440 | int32_T c1_w[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; |
| 441 | |
| 442 | const char * c1_x[3] = { "None", "ACTIVE", "STOPPING" }; |
| 443 | |
| 444 | int32_T c1_y[3] = { 0, 1, 2 }; |
| 445 | |
| 446 | const char * c1_ab[7] = { "None", "START", "READY", "RELEASE", "RPM_LIMITER", |
| 447 | "RUNNING", "STOPPING" }; |
| 448 | |
| 449 | int32_T c1_bb[7] = { 0, 1, 2, 3, 4, 5, 6 }; |
| 450 | |
| 451 | const char * c1_cb[6] = { "None", "READY", "RELEASE", "RPM_LIMITER", "RUNNING", |
| 452 | "START" }; |
| 453 | |
| 454 | int32_T c1_db[6] = { 0, 1, 2, 3, 4, 5 }; |
| 455 | |
| 456 | const char * c1_eb[6] = { "None", "START", "READY", "RELEASE", "RPM_LIMITER", |
| 457 | "RUNNING" }; |
| 458 | |
| 459 | int32_T c1_fb[6] = { 0, 1, 2, 3, 4, 5 }; |
| 460 | |
| 461 | const char * c1_gb[3] = { "None", "DEFAULT", "LAUNCH" }; |
| 462 | |
| 463 | int32_T c1_hb[3] = { 0, 1, 2 }; |
| 464 | |
| 465 | const char * c1_ib[8] = { "None", "DEFAULT", "START", "READY", "START_RELEASE", |
| 466 | "RELEASING", "RUNNING", "STOPPING" }; |
| 467 | |
| 468 | int32_T c1_jb[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; |
| 469 | |
| 470 | const char * c1_kb[3] = { "None", "ACTIVE", "STOPPING" }; |
| 471 | |
| 472 | int32_T c1_lb[3] = { 0, 1, 2 }; |
| 473 | |
| 474 | const char * c1_mb[7] = { "None", "START", "READY", "START_RELEASE", |
| 475 | "RELEASING", "RUNNING", "STOPPING" }; |
| 476 | |
| 477 | int32_T c1_nb[7] = { 0, 1, 2, 3, 4, 5, 6 }; |
| 478 | |
| 479 | const char * c1_ob[6] = { "None", "READY", "RELEASING", "RUNNING", "START", |
| 480 | "START_RELEASE" }; |
| 481 | |
| 482 | int32_T c1_pb[6] = { 0, 1, 2, 3, 4, 5 }; |
| 483 | |
| 484 | const char * c1_qb[6] = { "None", "START", "READY", "START_RELEASE", |
| 485 | "RELEASING", "RUNNING" }; |
| 486 | |
| 487 | int32_T c1_rb[6] = { 0, 1, 2, 3, 4, 5 }; |
| 488 | |
| 489 | const char * c1_sb[3] = { "None", "ENDURANCE", "SKIDPAD" }; |
| 490 | |
| 491 | int32_T c1_tb[3] = { 0, 1, 2 }; |
| 492 | |
| 493 | const char * c1_ub[3] = { "None", "ENDURANCE", "SKIDPAD" }; |
| 494 | |
| 495 | int32_T c1_vb[3] = { 0, 1, 2 }; |
| 496 | |
| 497 | const char * c1_wb[5] = { "None", "NEUTRAL", "NO_NEUTRAL", "SET_NEUTRAL", |
| 498 | "UNSET_NEUTRAL" }; |
| 499 | |
| 500 | int32_T c1_xb[5] = { 0, 1, 2, 3, 4 }; |
| 501 | |
| 502 | const char * c1_yb[5] = { "None", "NEUTRAL", "UNSET_NEUTRAL", "NO_NEUTRAL", |
| 503 | "SET_NEUTRAL" }; |
| 504 | |
| 505 | int32_T c1_ac[5] = { 0, 1, 2, 3, 4 }; |
| 506 | |
| 507 | const char * c1_bc[7] = { "None", "DOWNSHIFTING", "DOWN_END", "IDLE", "INIT", |
| 508 | "UPSHIFTING", "UP_END" }; |
| 509 | |
| 510 | int32_T c1_cc[7] = { 0, 1, 2, 3, 4, 5, 6 }; |
| 511 | |
| 512 | const char * c1_dc[19] = { "None", "INIT", "IDLE", "SettingNeutral", "Default", |
| 513 | "CutOff", "Default", "SettingNeutral", "Default", "UP_BRAKE", "UP_END", |
| 514 | "SettingNeutral", "ChangeClutch", "Default", "DOWN_PUSH", "DOWN_REBOUND", |
| 515 | "ChangeClutch", "Default", "DOWN_END" }; |
| 516 | |
| 517 | int32_T c1_ec[19] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, |
| 518 | 17, 18 }; |
| 519 | |
| 520 | const char * c1_fc[5] = { "None", "DOWN_BRAKE", "DOWN_PUSH", "DOWN_REBOUND", |
| 521 | "DOWN_START" }; |
| 522 | |
| 523 | int32_T c1_gc[5] = { 0, 1, 2, 3, 4 }; |
| 524 | |
| 525 | const char * c1_hc[8] = { "None", "SettingNeutral", "ChangeClutch", "Default", |
| 526 | "DOWN_PUSH", "DOWN_REBOUND", "ChangeClutch", "Default" }; |
| 527 | |
| 528 | int32_T c1_ic[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; |
| 529 | |
| 530 | const char * c1_jc[3] = { "None", "ChangeClutch", "Default" }; |
| 531 | |
| 532 | int32_T c1_kc[3] = { 0, 1, 2 }; |
| 533 | |
| 534 | const char * c1_lc[3] = { "None", "ChangeClutch", "Default" }; |
| 535 | |
| 536 | int32_T c1_mc[3] = { 0, 1, 2 }; |
| 537 | |
| 538 | const char * c1_nc[4] = { "None", "ChangeClutch", "Default", "SettingNeutral" |
| 539 | }; |
| 540 | |
| 541 | int32_T c1_oc[4] = { 0, 1, 2, 3 }; |
| 542 | |
| 543 | const char * c1_pc[4] = { "None", "SettingNeutral", "ChangeClutch", "Default" |
| 544 | }; |
| 545 | |
| 546 | int32_T c1_qc[4] = { 0, 1, 2, 3 }; |
| 547 | |
| 548 | const char * c1_rc[5] = { "None", "UP_BRAKE", "UP_PUSH", "UP_REBOUND", |
| 549 | "UP_START" }; |
| 550 | |
| 551 | int32_T c1_sc[5] = { 0, 1, 2, 3, 4 }; |
| 552 | |
| 553 | const char * c1_tc[8] = { "None", "SettingNeutral", "Default", "CutOff", |
| 554 | "Default", "SettingNeutral", "Default", "UP_BRAKE" }; |
| 555 | |
| 556 | int32_T c1_uc[8] = { 0, 1, 2, 3, 4, 5, 6, 7 }; |
| 557 | |
| 558 | const char * c1_vc[3] = { "None", "CutOff", "Default" }; |
| 559 | |
| 560 | int32_T c1_wc[3] = { 0, 1, 2 }; |
| 561 | |
| 562 | const char * c1_xc[3] = { "None", "CutOff", "Default" }; |
| 563 | |
| 564 | int32_T c1_yc[3] = { 0, 1, 2 }; |
| 565 | |
| 566 | const char * c1_ad[3] = { "None", "Default", "SettingNeutral" }; |
| 567 | |
| 568 | int32_T c1_bd[3] = { 0, 1, 2 }; |
| 569 | |
| 570 | const char * c1_cd[3] = { "None", "SettingNeutral", "Default" }; |
| 571 | |
| 572 | int32_T c1_dd[3] = { 0, 1, 2 }; |
| 573 | |
| 574 | const char * c1_ed[3] = { "None", "Default", "SettingNeutral" }; |
| 575 | |
| 576 | int32_T c1_fd[3] = { 0, 1, 2 }; |
| 577 | |
| 578 | const char * c1_gd[3] = { "None", "SettingNeutral", "Default" }; |
| 579 | |
| 580 | int32_T c1_hd[3] = { 0, 1, 2 }; |
| 581 | |
| 582 | const char * c1_id[4] = { "None", "START", "STOP", "WAIT" }; |
| 583 | |
| 584 | int32_T c1_jd[4] = { 0, 1, 2, 3 }; |
| 585 | |
| 586 | const char * c1_kd[4] = { "None", "WAIT", "START", "STOP" }; |
| 587 | |
| 588 | int32_T c1_ld[4] = { 0, 1, 2, 3 }; |
| 589 | |
| 590 | const char * c1_md[2] = { "None", "SCAN" }; |
| 591 | |
| 592 | int32_T c1_nd[2] = { 0, 1 }; |
| 593 | |
| 594 | const char * c1_od[2] = { "None", "SCAN" }; |
| 595 | |
| 596 | int32_T c1_pd[2] = { 0, 1 }; |
| 597 | |
| 598 | const char * c1_qd[3] = { "None", "SEND", "WAIT" }; |
| 599 | |
| 600 | int32_T c1_rd[3] = { 0, 1, 2 }; |
| 601 | |
| 602 | const char * c1_sd[3] = { "None", "WAIT", "SEND" }; |
| 603 | |
| 604 | int32_T c1_td[3] = { 0, 1, 2 }; |
| 605 | |
| 606 | const char * c1_ud[3] = { "None", "DISABLE", "ENABLE" }; |
| 607 | |
| 608 | int32_T c1_vd[3] = { 0, 1, 2 }; |
| 609 | |
| 610 | const char * c1_wd[3] = { "None", "DISABLE", "ENABLE" }; |
| 611 | |
| 612 | int32_T c1_xd[3] = { 0, 1, 2 }; |
| 613 | |
| 614 | int32_T c1_yd[1] = { 1 }; |
| 615 | |
| 616 | int32_T c1_ae[1] = { 2 }; |
| 617 | |
| 618 | int32_T c1_be[1] = { 1 }; |
| 619 | |
| 620 | int32_T c1_ce[1] = { 1 }; |
| 621 | |
| 622 | int32_T c1_de[1] = { 1 }; |
| 623 | |
| 624 | int32_T c1_ee[1] = { 1 }; |
| 625 | |
| 626 | int32_T c1_fe[2] = { 1, 2 }; |
| 627 | |
| 628 | int32_T c1_ge[1] = { 1 }; |
| 629 | |
| 630 | int32_T c1_he[1] = { 1 }; |
| 631 | |
| 632 | int32_T c1_ie[1] = { 1 }; |
| 633 | |
| 634 | int32_T c1_je[1] = { 1 }; |
| 635 | |
| 636 | int32_T c1_ke[1] = { 1 }; |
| 637 | |
| 638 | int32_T c1_le[1] = { 1 }; |
| 639 | |
| 640 | int32_T c1_me[1] = { 1 }; |
| 641 | |
| 642 | int32_T c1_ne[1] = { 1 }; |
| 643 | |
| 644 | int32_T c1_oe[1] = { 1 }; |
| 645 | |
| 646 | int32_T c1_pe[1] = { 1 }; |
| 647 | |
| 648 | int32_T c1_qe[1] = { 1 }; |
| 649 | |
| 650 | int32_T c1_re[1] = { 1 }; |
| 651 | |
| 652 | int32_T c1_se[1] = { 1 }; |
| 653 | |
| 654 | int32_T c1_te[1] = { 1 }; |
| 655 | |
| 656 | int32_T c1_ue[1] = { 1 }; |
| 657 | |
| 658 | int32_T c1_ve[1] = { 1 }; |
| 659 | |
| 660 | int32_T c1_we[1] = { 1 }; |
| 661 | |
| 662 | int32_T c1_xe[1] = { 1 }; |
| 663 | |
| 664 | int32_T c1_ye[1] = { 1 }; |
| 665 | |
| 666 | int32_T c1_af[1] = { 1 }; |
| 667 | |
| 668 | int32_T c1_bf[1] = { 1 }; |
| 669 | |
| 670 | int32_T c1_cf[1] = { 1 }; |
| 671 | |
| 672 | int32_T c1_df[1] = { 1 }; |
| 673 | |
| 674 | chartInstance->c1_sdiBlockInfo.mdlRefFullPath = ""; |
| 675 | chartInstance->c1_sdiBlockInfo.SimStruct = (void *)chartInstance->S; |
| 676 | chartInstance->c1_sdiBlockInfo.blkPath = ""; |
| 677 | chartInstance->c1_sdiBlockInfo.blkSID = "GCU_Model_genCode:651"; |
| 678 | chartInstance->c1_sdiBlockInfo.sharedSCMPath = ""; |
| 679 | chartInstance->c1_sdiBlockInfo.sdiRuntime = NULL; |
| 680 | sdi_database_initialize(&chartInstance->c1_sdiBlockInfo, c1_b, (uint8_T *) |
| 681 | &chartInstance->c1_sdiLoggedStatesBuffer[0U], 79, c1_c, (uint8_T *) |
| 682 | &chartInstance->c1_sdiLoggedDataBuffer[0U], 89); |
| 683 | if (chartInstance->c1_sdiLoggedStatesBuffer[1U] & 1) { |
| 684 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, "MODES", |
| 685 | "MODES", 6, c1_d, c1_e, sizeof(uint8_T), 1, 418U); |
| 686 | } |
| 687 | |
| 688 | chartInstance->c1_SignalExportProp.logName = ""; |
| 689 | chartInstance->c1_SignalExportProp.signalName = "MODES"; |
| 690 | chartInstance->c1_SignalExportProp.useCustomName = 0; |
| 691 | chartInstance->c1_SignalExportProp.limitDataPoints = 0; |
| 692 | chartInstance->c1_SignalExportProp.decimate = 0; |
| 693 | chartInstance->c1_SignalExportProp.maxPoints = 5000U; |
| 694 | chartInstance->c1_SignalExportProp.decimation = 2U; |
| 695 | if (chartInstance->c1_sdiLoggedStatesBuffer[1U] & 4) { |
| 696 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, "MODES", |
| 697 | "MODES", 1, &chartInstance->c1_SignalExportProp, 418U); |
| 698 | } |
| 699 | |
| 700 | if (chartInstance->c1_sdiLoggedStatesBuffer[1U] & 2) { |
| 701 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, "MODES", |
| 702 | "MODES", 25, c1_f, c1_g, 1, 418U); |
| 703 | } |
| 704 | |
| 705 | if (chartInstance->c1_sdiLoggedStatesBuffer[2U] & 1) { |
| 706 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 707 | "MODES.ACCELERATION", "MODES/ACCELERATION", 3, c1_h, c1_i, sizeof(uint8_T), |
| 708 | 1, 820U); |
| 709 | } |
| 710 | |
| 711 | chartInstance->c1_b_SignalExportProp.logName = ""; |
| 712 | chartInstance->c1_b_SignalExportProp.signalName = "MODES.ACCELERATION"; |
| 713 | chartInstance->c1_b_SignalExportProp.useCustomName = 0; |
| 714 | chartInstance->c1_b_SignalExportProp.limitDataPoints = 0; |
| 715 | chartInstance->c1_b_SignalExportProp.decimate = 0; |
| 716 | chartInstance->c1_b_SignalExportProp.maxPoints = 5000U; |
| 717 | chartInstance->c1_b_SignalExportProp.decimation = 2U; |
| 718 | if (chartInstance->c1_sdiLoggedStatesBuffer[2U] & 4) { |
| 719 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 720 | "MODES.ACCELERATION", "MODES/ACCELERATION", 1, |
| 721 | &chartInstance->c1_b_SignalExportProp, 820U); |
| 722 | } |
| 723 | |
| 724 | if (chartInstance->c1_sdiLoggedStatesBuffer[2U] & 2) { |
| 725 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 726 | "MODES.ACCELERATION", "MODES/ACCELERATION", 8, c1_j, c1_k, 1, 820U); |
| 727 | } |
| 728 | |
| 729 | if (chartInstance->c1_sdiLoggedStatesBuffer[3U] & 1) { |
| 730 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 731 | "MODES.ACCELERATION.ACC", "MODES/ACCELERATION/ACC", 3, c1_l, c1_m, sizeof |
| 732 | (uint8_T), 1, 434U); |
| 733 | } |
| 734 | |
| 735 | chartInstance->c1_c_SignalExportProp.logName = ""; |
| 736 | chartInstance->c1_c_SignalExportProp.signalName = "MODES.ACCELERATION.ACC"; |
| 737 | chartInstance->c1_c_SignalExportProp.useCustomName = 0; |
| 738 | chartInstance->c1_c_SignalExportProp.limitDataPoints = 0; |
| 739 | chartInstance->c1_c_SignalExportProp.decimate = 0; |
| 740 | chartInstance->c1_c_SignalExportProp.maxPoints = 5000U; |
| 741 | chartInstance->c1_c_SignalExportProp.decimation = 2U; |
| 742 | if (chartInstance->c1_sdiLoggedStatesBuffer[3U] & 4) { |
| 743 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 744 | "MODES.ACCELERATION.ACC", "MODES/ACCELERATION/ACC", 1, |
| 745 | &chartInstance->c1_c_SignalExportProp, 434U); |
| 746 | } |
| 747 | |
| 748 | if (chartInstance->c1_sdiLoggedStatesBuffer[3U] & 2) { |
| 749 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 750 | "MODES.ACCELERATION.ACC", "MODES/ACCELERATION/ACC", 7, c1_n, c1_o, 1, 434U); |
| 751 | } |
| 752 | |
| 753 | if (chartInstance->c1_sdiLoggedStatesBuffer[4U] & 1) { |
| 754 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 755 | "MODES.ACCELERATION.ACC.ACTIVE", "MODES/ACCELERATION/ACC/ACTIVE", 6, c1_p, |
| 756 | c1_q, sizeof(uint8_T), 1, 538U); |
| 757 | } |
| 758 | |
| 759 | chartInstance->c1_d_SignalExportProp.logName = ""; |
| 760 | chartInstance->c1_d_SignalExportProp.signalName = |
| 761 | "MODES.ACCELERATION.ACC.ACTIVE"; |
| 762 | chartInstance->c1_d_SignalExportProp.useCustomName = 0; |
| 763 | chartInstance->c1_d_SignalExportProp.limitDataPoints = 0; |
| 764 | chartInstance->c1_d_SignalExportProp.decimate = 0; |
| 765 | chartInstance->c1_d_SignalExportProp.maxPoints = 5000U; |
| 766 | chartInstance->c1_d_SignalExportProp.decimation = 2U; |
| 767 | if (chartInstance->c1_sdiLoggedStatesBuffer[4U] & 4) { |
| 768 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 769 | "MODES.ACCELERATION.ACC.ACTIVE", "MODES/ACCELERATION/ACC/ACTIVE", 1, |
| 770 | &chartInstance->c1_d_SignalExportProp, 538U); |
| 771 | } |
| 772 | |
| 773 | if (chartInstance->c1_sdiLoggedStatesBuffer[4U] & 2) { |
| 774 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 775 | "MODES.ACCELERATION.ACC.ACTIVE", "MODES/ACCELERATION/ACC/ACTIVE", 6, c1_r, |
| 776 | c1_s, 1, 538U); |
| 777 | } |
| 778 | |
| 779 | chartInstance->c1_e_SignalExportProp.logName = ""; |
| 780 | chartInstance->c1_e_SignalExportProp.signalName = |
| 781 | "MODES.ACCELERATION.ACC.ACTIVE.READY"; |
| 782 | chartInstance->c1_e_SignalExportProp.useCustomName = 0; |
| 783 | chartInstance->c1_e_SignalExportProp.limitDataPoints = 0; |
| 784 | chartInstance->c1_e_SignalExportProp.decimate = 0; |
| 785 | chartInstance->c1_e_SignalExportProp.maxPoints = 5000U; |
| 786 | chartInstance->c1_e_SignalExportProp.decimation = 2U; |
| 787 | if (chartInstance->c1_sdiLoggedStatesBuffer[5U] & 4) { |
| 788 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 789 | "MODES.ACCELERATION.ACC.ACTIVE.READY", |
| 790 | "MODES/ACCELERATION/ACC/ACTIVE/READY", 1, |
| 791 | &chartInstance->c1_e_SignalExportProp, 545U); |
| 792 | } |
| 793 | |
| 794 | chartInstance->c1_f_SignalExportProp.logName = ""; |
| 795 | chartInstance->c1_f_SignalExportProp.signalName = |
| 796 | "MODES.ACCELERATION.ACC.ACTIVE.RELEASING"; |
| 797 | chartInstance->c1_f_SignalExportProp.useCustomName = 0; |
| 798 | chartInstance->c1_f_SignalExportProp.limitDataPoints = 0; |
| 799 | chartInstance->c1_f_SignalExportProp.decimate = 0; |
| 800 | chartInstance->c1_f_SignalExportProp.maxPoints = 5000U; |
| 801 | chartInstance->c1_f_SignalExportProp.decimation = 2U; |
| 802 | if (chartInstance->c1_sdiLoggedStatesBuffer[6U] & 4) { |
| 803 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 804 | "MODES.ACCELERATION.ACC.ACTIVE.RELEASING", |
| 805 | "MODES/ACCELERATION/ACC/ACTIVE/RELEASING", 1, |
| 806 | &chartInstance->c1_f_SignalExportProp, 544U); |
| 807 | } |
| 808 | |
| 809 | chartInstance->c1_g_SignalExportProp.logName = ""; |
| 810 | chartInstance->c1_g_SignalExportProp.signalName = |
| 811 | "MODES.ACCELERATION.ACC.ACTIVE.RUNNING"; |
| 812 | chartInstance->c1_g_SignalExportProp.useCustomName = 0; |
| 813 | chartInstance->c1_g_SignalExportProp.limitDataPoints = 0; |
| 814 | chartInstance->c1_g_SignalExportProp.decimate = 0; |
| 815 | chartInstance->c1_g_SignalExportProp.maxPoints = 5000U; |
| 816 | chartInstance->c1_g_SignalExportProp.decimation = 2U; |
| 817 | if (chartInstance->c1_sdiLoggedStatesBuffer[7U] & 4) { |
| 818 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 819 | "MODES.ACCELERATION.ACC.ACTIVE.RUNNING", |
| 820 | "MODES/ACCELERATION/ACC/ACTIVE/RUNNING", 1, |
| 821 | &chartInstance->c1_g_SignalExportProp, 514U); |
| 822 | } |
| 823 | |
| 824 | chartInstance->c1_h_SignalExportProp.logName = ""; |
| 825 | chartInstance->c1_h_SignalExportProp.signalName = |
| 826 | "MODES.ACCELERATION.ACC.ACTIVE.START"; |
| 827 | chartInstance->c1_h_SignalExportProp.useCustomName = 0; |
| 828 | chartInstance->c1_h_SignalExportProp.limitDataPoints = 0; |
| 829 | chartInstance->c1_h_SignalExportProp.decimate = 0; |
| 830 | chartInstance->c1_h_SignalExportProp.maxPoints = 5000U; |
| 831 | chartInstance->c1_h_SignalExportProp.decimation = 2U; |
| 832 | if (chartInstance->c1_sdiLoggedStatesBuffer[8U] & 4) { |
| 833 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 834 | "MODES.ACCELERATION.ACC.ACTIVE.START", |
| 835 | "MODES/ACCELERATION/ACC/ACTIVE/START", 1, |
| 836 | &chartInstance->c1_h_SignalExportProp, 543U); |
| 837 | } |
| 838 | |
| 839 | chartInstance->c1_i_SignalExportProp.logName = ""; |
| 840 | chartInstance->c1_i_SignalExportProp.signalName = |
| 841 | "MODES.ACCELERATION.ACC.ACTIVE.START_RELEASE"; |
| 842 | chartInstance->c1_i_SignalExportProp.useCustomName = 0; |
| 843 | chartInstance->c1_i_SignalExportProp.limitDataPoints = 0; |
| 844 | chartInstance->c1_i_SignalExportProp.decimate = 0; |
| 845 | chartInstance->c1_i_SignalExportProp.maxPoints = 5000U; |
| 846 | chartInstance->c1_i_SignalExportProp.decimation = 2U; |
| 847 | if (chartInstance->c1_sdiLoggedStatesBuffer[9U] & 4) { |
| 848 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 849 | "MODES.ACCELERATION.ACC.ACTIVE.START_RELEASE", |
| 850 | "MODES/ACCELERATION/ACC/ACTIVE/START_RELEASE", 1, |
| 851 | &chartInstance->c1_i_SignalExportProp, 547U); |
| 852 | } |
| 853 | |
| 854 | chartInstance->c1_j_SignalExportProp.logName = ""; |
| 855 | chartInstance->c1_j_SignalExportProp.signalName = |
| 856 | "MODES.ACCELERATION.ACC.STOPPING"; |
| 857 | chartInstance->c1_j_SignalExportProp.useCustomName = 0; |
| 858 | chartInstance->c1_j_SignalExportProp.limitDataPoints = 0; |
| 859 | chartInstance->c1_j_SignalExportProp.decimate = 0; |
| 860 | chartInstance->c1_j_SignalExportProp.maxPoints = 5000U; |
| 861 | chartInstance->c1_j_SignalExportProp.decimation = 2U; |
| 862 | if (chartInstance->c1_sdiLoggedStatesBuffer[10U] & 4) { |
| 863 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 864 | "MODES.ACCELERATION.ACC.STOPPING", "MODES/ACCELERATION/ACC/STOPPING", 1, |
| 865 | &chartInstance->c1_j_SignalExportProp, 515U); |
| 866 | } |
| 867 | |
| 868 | chartInstance->c1_k_SignalExportProp.logName = ""; |
| 869 | chartInstance->c1_k_SignalExportProp.signalName = "MODES.ACCELERATION.DEFAULT"; |
| 870 | chartInstance->c1_k_SignalExportProp.useCustomName = 0; |
| 871 | chartInstance->c1_k_SignalExportProp.limitDataPoints = 0; |
| 872 | chartInstance->c1_k_SignalExportProp.decimate = 0; |
| 873 | chartInstance->c1_k_SignalExportProp.maxPoints = 5000U; |
| 874 | chartInstance->c1_k_SignalExportProp.decimation = 2U; |
| 875 | if (chartInstance->c1_sdiLoggedStatesBuffer[11U] & 4) { |
| 876 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 877 | "MODES.ACCELERATION.DEFAULT", "MODES/ACCELERATION/DEFAULT", 1, |
| 878 | &chartInstance->c1_k_SignalExportProp, 821U); |
| 879 | } |
| 880 | |
| 881 | if (chartInstance->c1_sdiLoggedStatesBuffer[12U] & 1) { |
| 882 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 883 | "MODES.ACCELERATION_PID", "MODES/ACCELERATION_PID", 3, c1_t, c1_u, sizeof |
| 884 | (uint8_T), 1, 1157U); |
| 885 | } |
| 886 | |
| 887 | chartInstance->c1_l_SignalExportProp.logName = ""; |
| 888 | chartInstance->c1_l_SignalExportProp.signalName = "MODES.ACCELERATION_PID"; |
| 889 | chartInstance->c1_l_SignalExportProp.useCustomName = 0; |
| 890 | chartInstance->c1_l_SignalExportProp.limitDataPoints = 0; |
| 891 | chartInstance->c1_l_SignalExportProp.decimate = 0; |
| 892 | chartInstance->c1_l_SignalExportProp.maxPoints = 5000U; |
| 893 | chartInstance->c1_l_SignalExportProp.decimation = 2U; |
| 894 | if (chartInstance->c1_sdiLoggedStatesBuffer[12U] & 4) { |
| 895 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 896 | "MODES.ACCELERATION_PID", "MODES/ACCELERATION_PID", 1, |
| 897 | &chartInstance->c1_l_SignalExportProp, 1157U); |
| 898 | } |
| 899 | |
| 900 | if (chartInstance->c1_sdiLoggedStatesBuffer[12U] & 2) { |
| 901 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 902 | "MODES.ACCELERATION_PID", "MODES/ACCELERATION_PID", 8, c1_v, c1_w, 1, |
| 903 | 1157U); |
| 904 | } |
| 905 | |
| 906 | chartInstance->c1_m_SignalExportProp.logName = ""; |
| 907 | chartInstance->c1_m_SignalExportProp.signalName = |
| 908 | "MODES.ACCELERATION_PID.DEFAULT"; |
| 909 | chartInstance->c1_m_SignalExportProp.useCustomName = 0; |
| 910 | chartInstance->c1_m_SignalExportProp.limitDataPoints = 0; |
| 911 | chartInstance->c1_m_SignalExportProp.decimate = 0; |
| 912 | chartInstance->c1_m_SignalExportProp.maxPoints = 5000U; |
| 913 | chartInstance->c1_m_SignalExportProp.decimation = 2U; |
| 914 | if (chartInstance->c1_sdiLoggedStatesBuffer[13U] & 4) { |
| 915 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 916 | "MODES.ACCELERATION_PID.DEFAULT", "MODES/ACCELERATION_PID/DEFAULT", 1, |
| 917 | &chartInstance->c1_m_SignalExportProp, 1091U); |
| 918 | } |
| 919 | |
| 920 | if (chartInstance->c1_sdiLoggedStatesBuffer[14U] & 1) { |
| 921 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 922 | "MODES.ACCELERATION_PID.LAUNCH0", "MODES/ACCELERATION_PID/LAUNCH0", 3, |
| 923 | c1_x, c1_y, sizeof(uint8_T), 1, 2174U); |
| 924 | } |
| 925 | |
| 926 | chartInstance->c1_n_SignalExportProp.logName = ""; |
| 927 | chartInstance->c1_n_SignalExportProp.signalName = |
| 928 | "MODES.ACCELERATION_PID.LAUNCH0"; |
| 929 | chartInstance->c1_n_SignalExportProp.useCustomName = 0; |
| 930 | chartInstance->c1_n_SignalExportProp.limitDataPoints = 0; |
| 931 | chartInstance->c1_n_SignalExportProp.decimate = 0; |
| 932 | chartInstance->c1_n_SignalExportProp.maxPoints = 5000U; |
| 933 | chartInstance->c1_n_SignalExportProp.decimation = 2U; |
| 934 | if (chartInstance->c1_sdiLoggedStatesBuffer[14U] & 4) { |
| 935 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 936 | "MODES.ACCELERATION_PID.LAUNCH0", "MODES/ACCELERATION_PID/LAUNCH0", 1, |
| 937 | &chartInstance->c1_n_SignalExportProp, 2174U); |
| 938 | } |
| 939 | |
| 940 | if (chartInstance->c1_sdiLoggedStatesBuffer[14U] & 2) { |
| 941 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 942 | "MODES.ACCELERATION_PID.LAUNCH0", "MODES/ACCELERATION_PID/LAUNCH0", 7, |
| 943 | c1_ab, c1_bb, 1, 2174U); |
| 944 | } |
| 945 | |
| 946 | if (chartInstance->c1_sdiLoggedStatesBuffer[15U] & 1) { |
| 947 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 948 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE", |
| 949 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE", 6, c1_cb, c1_db, sizeof(uint8_T), |
| 950 | 1, 2182U); |
| 951 | } |
| 952 | |
| 953 | chartInstance->c1_o_SignalExportProp.logName = ""; |
| 954 | chartInstance->c1_o_SignalExportProp.signalName = |
| 955 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE"; |
| 956 | chartInstance->c1_o_SignalExportProp.useCustomName = 0; |
| 957 | chartInstance->c1_o_SignalExportProp.limitDataPoints = 0; |
| 958 | chartInstance->c1_o_SignalExportProp.decimate = 0; |
| 959 | chartInstance->c1_o_SignalExportProp.maxPoints = 5000U; |
| 960 | chartInstance->c1_o_SignalExportProp.decimation = 2U; |
| 961 | if (chartInstance->c1_sdiLoggedStatesBuffer[15U] & 4) { |
| 962 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 963 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE", |
| 964 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE", 1, |
| 965 | &chartInstance->c1_o_SignalExportProp, 2182U); |
| 966 | } |
| 967 | |
| 968 | if (chartInstance->c1_sdiLoggedStatesBuffer[15U] & 2) { |
| 969 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 970 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE", |
| 971 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE", 6, c1_eb, c1_fb, 1, 2182U); |
| 972 | } |
| 973 | |
| 974 | chartInstance->c1_p_SignalExportProp.logName = ""; |
| 975 | chartInstance->c1_p_SignalExportProp.signalName = |
| 976 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.READY"; |
| 977 | chartInstance->c1_p_SignalExportProp.useCustomName = 0; |
| 978 | chartInstance->c1_p_SignalExportProp.limitDataPoints = 0; |
| 979 | chartInstance->c1_p_SignalExportProp.decimate = 0; |
| 980 | chartInstance->c1_p_SignalExportProp.maxPoints = 5000U; |
| 981 | chartInstance->c1_p_SignalExportProp.decimation = 2U; |
| 982 | if (chartInstance->c1_sdiLoggedStatesBuffer[16U] & 4) { |
| 983 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 984 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.READY", |
| 985 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE/READY", 1, |
| 986 | &chartInstance->c1_p_SignalExportProp, 2192U); |
| 987 | } |
| 988 | |
| 989 | chartInstance->c1_q_SignalExportProp.logName = ""; |
| 990 | chartInstance->c1_q_SignalExportProp.signalName = |
| 991 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RELEASE"; |
| 992 | chartInstance->c1_q_SignalExportProp.useCustomName = 0; |
| 993 | chartInstance->c1_q_SignalExportProp.limitDataPoints = 0; |
| 994 | chartInstance->c1_q_SignalExportProp.decimate = 0; |
| 995 | chartInstance->c1_q_SignalExportProp.maxPoints = 5000U; |
| 996 | chartInstance->c1_q_SignalExportProp.decimation = 2U; |
| 997 | if (chartInstance->c1_sdiLoggedStatesBuffer[17U] & 4) { |
| 998 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 999 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RELEASE", |
| 1000 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE/RELEASE", 1, |
| 1001 | &chartInstance->c1_q_SignalExportProp, 2238U); |
| 1002 | } |
| 1003 | |
| 1004 | chartInstance->c1_r_SignalExportProp.logName = ""; |
| 1005 | chartInstance->c1_r_SignalExportProp.signalName = |
| 1006 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RPM_LIMITER"; |
| 1007 | chartInstance->c1_r_SignalExportProp.useCustomName = 0; |
| 1008 | chartInstance->c1_r_SignalExportProp.limitDataPoints = 0; |
| 1009 | chartInstance->c1_r_SignalExportProp.decimate = 0; |
| 1010 | chartInstance->c1_r_SignalExportProp.maxPoints = 5000U; |
| 1011 | chartInstance->c1_r_SignalExportProp.decimation = 2U; |
| 1012 | if (chartInstance->c1_sdiLoggedStatesBuffer[18U] & 4) { |
| 1013 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1014 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RPM_LIMITER", |
| 1015 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE/RPM_LIMITER", 1, |
| 1016 | &chartInstance->c1_r_SignalExportProp, 2848U); |
| 1017 | } |
| 1018 | |
| 1019 | chartInstance->c1_s_SignalExportProp.logName = ""; |
| 1020 | chartInstance->c1_s_SignalExportProp.signalName = |
| 1021 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RUNNING"; |
| 1022 | chartInstance->c1_s_SignalExportProp.useCustomName = 0; |
| 1023 | chartInstance->c1_s_SignalExportProp.limitDataPoints = 0; |
| 1024 | chartInstance->c1_s_SignalExportProp.decimate = 0; |
| 1025 | chartInstance->c1_s_SignalExportProp.maxPoints = 5000U; |
| 1026 | chartInstance->c1_s_SignalExportProp.decimation = 2U; |
| 1027 | if (chartInstance->c1_sdiLoggedStatesBuffer[19U] & 4) { |
| 1028 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1029 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.RUNNING", |
| 1030 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE/RUNNING", 1, |
| 1031 | &chartInstance->c1_s_SignalExportProp, 2193U); |
| 1032 | } |
| 1033 | |
| 1034 | chartInstance->c1_t_SignalExportProp.logName = ""; |
| 1035 | chartInstance->c1_t_SignalExportProp.signalName = |
| 1036 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.START"; |
| 1037 | chartInstance->c1_t_SignalExportProp.useCustomName = 0; |
| 1038 | chartInstance->c1_t_SignalExportProp.limitDataPoints = 0; |
| 1039 | chartInstance->c1_t_SignalExportProp.decimate = 0; |
| 1040 | chartInstance->c1_t_SignalExportProp.maxPoints = 5000U; |
| 1041 | chartInstance->c1_t_SignalExportProp.decimation = 2U; |
| 1042 | if (chartInstance->c1_sdiLoggedStatesBuffer[20U] & 4) { |
| 1043 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1044 | "MODES.ACCELERATION_PID.LAUNCH0.ACTIVE.START", |
| 1045 | "MODES/ACCELERATION_PID/LAUNCH0/ACTIVE/START", 1, |
| 1046 | &chartInstance->c1_t_SignalExportProp, 2191U); |
| 1047 | } |
| 1048 | |
| 1049 | chartInstance->c1_u_SignalExportProp.logName = ""; |
| 1050 | chartInstance->c1_u_SignalExportProp.signalName = |
| 1051 | "MODES.ACCELERATION_PID.LAUNCH0.STOPPING"; |
| 1052 | chartInstance->c1_u_SignalExportProp.useCustomName = 0; |
| 1053 | chartInstance->c1_u_SignalExportProp.limitDataPoints = 0; |
| 1054 | chartInstance->c1_u_SignalExportProp.decimate = 0; |
| 1055 | chartInstance->c1_u_SignalExportProp.maxPoints = 5000U; |
| 1056 | chartInstance->c1_u_SignalExportProp.decimation = 2U; |
| 1057 | if (chartInstance->c1_sdiLoggedStatesBuffer[21U] & 4) { |
| 1058 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1059 | "MODES.ACCELERATION_PID.LAUNCH0.STOPPING", |
| 1060 | "MODES/ACCELERATION_PID/LAUNCH0/STOPPING", 1, |
| 1061 | &chartInstance->c1_u_SignalExportProp, 2223U); |
| 1062 | } |
| 1063 | |
| 1064 | if (chartInstance->c1_sdiLoggedStatesBuffer[22U] & 1) { |
| 1065 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1066 | "MODES.AUTOCROSS", "MODES/AUTOCROSS", 3, c1_gb, c1_hb, sizeof(uint8_T), 1, |
| 1067 | 951U); |
| 1068 | } |
| 1069 | |
| 1070 | chartInstance->c1_v_SignalExportProp.logName = ""; |
| 1071 | chartInstance->c1_v_SignalExportProp.signalName = "MODES.AUTOCROSS"; |
| 1072 | chartInstance->c1_v_SignalExportProp.useCustomName = 0; |
| 1073 | chartInstance->c1_v_SignalExportProp.limitDataPoints = 0; |
| 1074 | chartInstance->c1_v_SignalExportProp.decimate = 0; |
| 1075 | chartInstance->c1_v_SignalExportProp.maxPoints = 5000U; |
| 1076 | chartInstance->c1_v_SignalExportProp.decimation = 2U; |
| 1077 | if (chartInstance->c1_sdiLoggedStatesBuffer[22U] & 4) { |
| 1078 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1079 | "MODES.AUTOCROSS", "MODES/AUTOCROSS", 1, |
| 1080 | &chartInstance->c1_v_SignalExportProp, 951U); |
| 1081 | } |
| 1082 | |
| 1083 | if (chartInstance->c1_sdiLoggedStatesBuffer[22U] & 2) { |
| 1084 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1085 | "MODES.AUTOCROSS", "MODES/AUTOCROSS", 8, c1_ib, c1_jb, 1, 951U); |
| 1086 | } |
| 1087 | |
| 1088 | chartInstance->c1_w_SignalExportProp.logName = ""; |
| 1089 | chartInstance->c1_w_SignalExportProp.signalName = "MODES.AUTOCROSS.DEFAULT"; |
| 1090 | chartInstance->c1_w_SignalExportProp.useCustomName = 0; |
| 1091 | chartInstance->c1_w_SignalExportProp.limitDataPoints = 0; |
| 1092 | chartInstance->c1_w_SignalExportProp.decimate = 0; |
| 1093 | chartInstance->c1_w_SignalExportProp.maxPoints = 5000U; |
| 1094 | chartInstance->c1_w_SignalExportProp.decimation = 2U; |
| 1095 | if (chartInstance->c1_sdiLoggedStatesBuffer[23U] & 4) { |
| 1096 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1097 | "MODES.AUTOCROSS.DEFAULT", "MODES/AUTOCROSS/DEFAULT", 1, |
| 1098 | &chartInstance->c1_w_SignalExportProp, 952U); |
| 1099 | } |
| 1100 | |
| 1101 | if (chartInstance->c1_sdiLoggedStatesBuffer[24U] & 1) { |
| 1102 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1103 | "MODES.AUTOCROSS.LAUNCH", "MODES/AUTOCROSS/LAUNCH", 3, c1_kb, c1_lb, |
| 1104 | sizeof(uint8_T), 1, 974U); |
| 1105 | } |
| 1106 | |
| 1107 | chartInstance->c1_x_SignalExportProp.logName = ""; |
| 1108 | chartInstance->c1_x_SignalExportProp.signalName = "MODES.AUTOCROSS.LAUNCH"; |
| 1109 | chartInstance->c1_x_SignalExportProp.useCustomName = 0; |
| 1110 | chartInstance->c1_x_SignalExportProp.limitDataPoints = 0; |
| 1111 | chartInstance->c1_x_SignalExportProp.decimate = 0; |
| 1112 | chartInstance->c1_x_SignalExportProp.maxPoints = 5000U; |
| 1113 | chartInstance->c1_x_SignalExportProp.decimation = 2U; |
| 1114 | if (chartInstance->c1_sdiLoggedStatesBuffer[24U] & 4) { |
| 1115 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1116 | "MODES.AUTOCROSS.LAUNCH", "MODES/AUTOCROSS/LAUNCH", 1, |
| 1117 | &chartInstance->c1_x_SignalExportProp, 974U); |
| 1118 | } |
| 1119 | |
| 1120 | if (chartInstance->c1_sdiLoggedStatesBuffer[24U] & 2) { |
| 1121 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1122 | "MODES.AUTOCROSS.LAUNCH", "MODES/AUTOCROSS/LAUNCH", 7, c1_mb, c1_nb, 1, |
| 1123 | 974U); |
| 1124 | } |
| 1125 | |
| 1126 | if (chartInstance->c1_sdiLoggedStatesBuffer[25U] & 1) { |
| 1127 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1128 | "MODES.AUTOCROSS.LAUNCH.ACTIVE", "MODES/AUTOCROSS/LAUNCH/ACTIVE", 6, c1_ob, |
| 1129 | c1_pb, sizeof(uint8_T), 1, 985U); |
| 1130 | } |
| 1131 | |
| 1132 | chartInstance->c1_y_SignalExportProp.logName = ""; |
| 1133 | chartInstance->c1_y_SignalExportProp.signalName = |
| 1134 | "MODES.AUTOCROSS.LAUNCH.ACTIVE"; |
| 1135 | chartInstance->c1_y_SignalExportProp.useCustomName = 0; |
| 1136 | chartInstance->c1_y_SignalExportProp.limitDataPoints = 0; |
| 1137 | chartInstance->c1_y_SignalExportProp.decimate = 0; |
| 1138 | chartInstance->c1_y_SignalExportProp.maxPoints = 5000U; |
| 1139 | chartInstance->c1_y_SignalExportProp.decimation = 2U; |
| 1140 | if (chartInstance->c1_sdiLoggedStatesBuffer[25U] & 4) { |
| 1141 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1142 | "MODES.AUTOCROSS.LAUNCH.ACTIVE", "MODES/AUTOCROSS/LAUNCH/ACTIVE", 1, |
| 1143 | &chartInstance->c1_y_SignalExportProp, 985U); |
| 1144 | } |
| 1145 | |
| 1146 | if (chartInstance->c1_sdiLoggedStatesBuffer[25U] & 2) { |
| 1147 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1148 | "MODES.AUTOCROSS.LAUNCH.ACTIVE", "MODES/AUTOCROSS/LAUNCH/ACTIVE", 6, c1_qb, |
| 1149 | c1_rb, 1, 985U); |
| 1150 | } |
| 1151 | |
| 1152 | chartInstance->c1_ab_SignalExportProp.logName = ""; |
| 1153 | chartInstance->c1_ab_SignalExportProp.signalName = |
| 1154 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.READY"; |
| 1155 | chartInstance->c1_ab_SignalExportProp.useCustomName = 0; |
| 1156 | chartInstance->c1_ab_SignalExportProp.limitDataPoints = 0; |
| 1157 | chartInstance->c1_ab_SignalExportProp.decimate = 0; |
| 1158 | chartInstance->c1_ab_SignalExportProp.maxPoints = 5000U; |
| 1159 | chartInstance->c1_ab_SignalExportProp.decimation = 2U; |
| 1160 | if (chartInstance->c1_sdiLoggedStatesBuffer[26U] & 4) { |
| 1161 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1162 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.READY", |
| 1163 | "MODES/AUTOCROSS/LAUNCH/ACTIVE/READY", 1, |
| 1164 | &chartInstance->c1_ab_SignalExportProp, 999U); |
| 1165 | } |
| 1166 | |
| 1167 | chartInstance->c1_bb_SignalExportProp.logName = ""; |
| 1168 | chartInstance->c1_bb_SignalExportProp.signalName = |
| 1169 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.RELEASING"; |
| 1170 | chartInstance->c1_bb_SignalExportProp.useCustomName = 0; |
| 1171 | chartInstance->c1_bb_SignalExportProp.limitDataPoints = 0; |
| 1172 | chartInstance->c1_bb_SignalExportProp.decimate = 0; |
| 1173 | chartInstance->c1_bb_SignalExportProp.maxPoints = 5000U; |
| 1174 | chartInstance->c1_bb_SignalExportProp.decimation = 2U; |
| 1175 | if (chartInstance->c1_sdiLoggedStatesBuffer[27U] & 4) { |
| 1176 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1177 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.RELEASING", |
| 1178 | "MODES/AUTOCROSS/LAUNCH/ACTIVE/RELEASING", 1, |
| 1179 | &chartInstance->c1_bb_SignalExportProp, 1025U); |
| 1180 | } |
| 1181 | |
| 1182 | chartInstance->c1_cb_SignalExportProp.logName = ""; |
| 1183 | chartInstance->c1_cb_SignalExportProp.signalName = |
| 1184 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.RUNNING"; |
| 1185 | chartInstance->c1_cb_SignalExportProp.useCustomName = 0; |
| 1186 | chartInstance->c1_cb_SignalExportProp.limitDataPoints = 0; |
| 1187 | chartInstance->c1_cb_SignalExportProp.decimate = 0; |
| 1188 | chartInstance->c1_cb_SignalExportProp.maxPoints = 5000U; |
| 1189 | chartInstance->c1_cb_SignalExportProp.decimation = 2U; |
| 1190 | if (chartInstance->c1_sdiLoggedStatesBuffer[28U] & 4) { |
| 1191 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1192 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.RUNNING", |
| 1193 | "MODES/AUTOCROSS/LAUNCH/ACTIVE/RUNNING", 1, |
| 1194 | &chartInstance->c1_cb_SignalExportProp, 1002U); |
| 1195 | } |
| 1196 | |
| 1197 | chartInstance->c1_db_SignalExportProp.logName = ""; |
| 1198 | chartInstance->c1_db_SignalExportProp.signalName = |
| 1199 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.START"; |
| 1200 | chartInstance->c1_db_SignalExportProp.useCustomName = 0; |
| 1201 | chartInstance->c1_db_SignalExportProp.limitDataPoints = 0; |
| 1202 | chartInstance->c1_db_SignalExportProp.decimate = 0; |
| 1203 | chartInstance->c1_db_SignalExportProp.maxPoints = 5000U; |
| 1204 | chartInstance->c1_db_SignalExportProp.decimation = 2U; |
| 1205 | if (chartInstance->c1_sdiLoggedStatesBuffer[29U] & 4) { |
| 1206 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1207 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.START", |
| 1208 | "MODES/AUTOCROSS/LAUNCH/ACTIVE/START", 1, |
| 1209 | &chartInstance->c1_db_SignalExportProp, 998U); |
| 1210 | } |
| 1211 | |
| 1212 | chartInstance->c1_eb_SignalExportProp.logName = ""; |
| 1213 | chartInstance->c1_eb_SignalExportProp.signalName = |
| 1214 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.START_RELEASE"; |
| 1215 | chartInstance->c1_eb_SignalExportProp.useCustomName = 0; |
| 1216 | chartInstance->c1_eb_SignalExportProp.limitDataPoints = 0; |
| 1217 | chartInstance->c1_eb_SignalExportProp.decimate = 0; |
| 1218 | chartInstance->c1_eb_SignalExportProp.maxPoints = 5000U; |
| 1219 | chartInstance->c1_eb_SignalExportProp.decimation = 2U; |
| 1220 | if (chartInstance->c1_sdiLoggedStatesBuffer[30U] & 4) { |
| 1221 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1222 | "MODES.AUTOCROSS.LAUNCH.ACTIVE.START_RELEASE", |
| 1223 | "MODES/AUTOCROSS/LAUNCH/ACTIVE/START_RELEASE", 1, |
| 1224 | &chartInstance->c1_eb_SignalExportProp, 1001U); |
| 1225 | } |
| 1226 | |
| 1227 | chartInstance->c1_fb_SignalExportProp.logName = ""; |
| 1228 | chartInstance->c1_fb_SignalExportProp.signalName = |
| 1229 | "MODES.AUTOCROSS.LAUNCH.STOPPING"; |
| 1230 | chartInstance->c1_fb_SignalExportProp.useCustomName = 0; |
| 1231 | chartInstance->c1_fb_SignalExportProp.limitDataPoints = 0; |
| 1232 | chartInstance->c1_fb_SignalExportProp.decimate = 0; |
| 1233 | chartInstance->c1_fb_SignalExportProp.maxPoints = 5000U; |
| 1234 | chartInstance->c1_fb_SignalExportProp.decimation = 2U; |
| 1235 | if (chartInstance->c1_sdiLoggedStatesBuffer[31U] & 4) { |
| 1236 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1237 | "MODES.AUTOCROSS.LAUNCH.STOPPING", "MODES/AUTOCROSS/LAUNCH/STOPPING", 1, |
| 1238 | &chartInstance->c1_fb_SignalExportProp, 1028U); |
| 1239 | } |
| 1240 | |
| 1241 | chartInstance->c1_gb_SignalExportProp.logName = ""; |
| 1242 | chartInstance->c1_gb_SignalExportProp.signalName = "MODES.INIT"; |
| 1243 | chartInstance->c1_gb_SignalExportProp.useCustomName = 0; |
| 1244 | chartInstance->c1_gb_SignalExportProp.limitDataPoints = 0; |
| 1245 | chartInstance->c1_gb_SignalExportProp.decimate = 0; |
| 1246 | chartInstance->c1_gb_SignalExportProp.maxPoints = 5000U; |
| 1247 | chartInstance->c1_gb_SignalExportProp.decimation = 2U; |
| 1248 | if (chartInstance->c1_sdiLoggedStatesBuffer[32U] & 4) { |
| 1249 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1250 | "MODES.INIT", "MODES/INIT", 1, &chartInstance->c1_gb_SignalExportProp, |
| 1251 | 429U); |
| 1252 | } |
| 1253 | |
| 1254 | if (chartInstance->c1_sdiLoggedStatesBuffer[33U] & 1) { |
| 1255 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1256 | "MODES.MANUAL_MODES", "MODES/MANUAL_MODES", 3, c1_sb, c1_tb, sizeof |
| 1257 | (uint8_T), 1, 727U); |
| 1258 | } |
| 1259 | |
| 1260 | chartInstance->c1_hb_SignalExportProp.logName = ""; |
| 1261 | chartInstance->c1_hb_SignalExportProp.signalName = "MODES.MANUAL_MODES"; |
| 1262 | chartInstance->c1_hb_SignalExportProp.useCustomName = 0; |
| 1263 | chartInstance->c1_hb_SignalExportProp.limitDataPoints = 0; |
| 1264 | chartInstance->c1_hb_SignalExportProp.decimate = 0; |
| 1265 | chartInstance->c1_hb_SignalExportProp.maxPoints = 5000U; |
| 1266 | chartInstance->c1_hb_SignalExportProp.decimation = 2U; |
| 1267 | if (chartInstance->c1_sdiLoggedStatesBuffer[33U] & 4) { |
| 1268 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1269 | "MODES.MANUAL_MODES", "MODES/MANUAL_MODES", 1, |
| 1270 | &chartInstance->c1_hb_SignalExportProp, 727U); |
| 1271 | } |
| 1272 | |
| 1273 | if (chartInstance->c1_sdiLoggedStatesBuffer[33U] & 2) { |
| 1274 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1275 | "MODES.MANUAL_MODES", "MODES/MANUAL_MODES", 3, c1_ub, c1_vb, 1, 727U); |
| 1276 | } |
| 1277 | |
| 1278 | chartInstance->c1_ib_SignalExportProp.logName = ""; |
| 1279 | chartInstance->c1_ib_SignalExportProp.signalName = |
| 1280 | "MODES.MANUAL_MODES.ENDURANCE"; |
| 1281 | chartInstance->c1_ib_SignalExportProp.useCustomName = 0; |
| 1282 | chartInstance->c1_ib_SignalExportProp.limitDataPoints = 0; |
| 1283 | chartInstance->c1_ib_SignalExportProp.decimate = 0; |
| 1284 | chartInstance->c1_ib_SignalExportProp.maxPoints = 5000U; |
| 1285 | chartInstance->c1_ib_SignalExportProp.decimation = 2U; |
| 1286 | if (chartInstance->c1_sdiLoggedStatesBuffer[34U] & 4) { |
| 1287 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1288 | "MODES.MANUAL_MODES.ENDURANCE", "MODES/MANUAL_MODES/ENDURANCE", 1, |
| 1289 | &chartInstance->c1_ib_SignalExportProp, 729U); |
| 1290 | } |
| 1291 | |
| 1292 | chartInstance->c1_jb_SignalExportProp.logName = ""; |
| 1293 | chartInstance->c1_jb_SignalExportProp.signalName = |
| 1294 | "MODES.MANUAL_MODES.SKIDPAD"; |
| 1295 | chartInstance->c1_jb_SignalExportProp.useCustomName = 0; |
| 1296 | chartInstance->c1_jb_SignalExportProp.limitDataPoints = 0; |
| 1297 | chartInstance->c1_jb_SignalExportProp.decimate = 0; |
| 1298 | chartInstance->c1_jb_SignalExportProp.maxPoints = 5000U; |
| 1299 | chartInstance->c1_jb_SignalExportProp.decimation = 2U; |
| 1300 | if (chartInstance->c1_sdiLoggedStatesBuffer[35U] & 4) { |
| 1301 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1302 | "MODES.MANUAL_MODES.SKIDPAD", "MODES/MANUAL_MODES/SKIDPAD", 1, |
| 1303 | &chartInstance->c1_jb_SignalExportProp, 728U); |
| 1304 | } |
| 1305 | |
| 1306 | if (chartInstance->c1_sdiLoggedStatesBuffer[36U] & 1) { |
| 1307 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1308 | "NEUTRAL_STATE", "NEUTRAL_STATE", 5, c1_wb, c1_xb, sizeof(uint8_T), 1, 31U); |
| 1309 | } |
| 1310 | |
| 1311 | chartInstance->c1_kb_SignalExportProp.logName = ""; |
| 1312 | chartInstance->c1_kb_SignalExportProp.signalName = "NEUTRAL_STATE"; |
| 1313 | chartInstance->c1_kb_SignalExportProp.useCustomName = 0; |
| 1314 | chartInstance->c1_kb_SignalExportProp.limitDataPoints = 0; |
| 1315 | chartInstance->c1_kb_SignalExportProp.decimate = 0; |
| 1316 | chartInstance->c1_kb_SignalExportProp.maxPoints = 5000U; |
| 1317 | chartInstance->c1_kb_SignalExportProp.decimation = 2U; |
| 1318 | if (chartInstance->c1_sdiLoggedStatesBuffer[36U] & 4) { |
| 1319 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1320 | "NEUTRAL_STATE", "NEUTRAL_STATE", 1, |
| 1321 | &chartInstance->c1_kb_SignalExportProp, 31U); |
| 1322 | } |
| 1323 | |
| 1324 | if (chartInstance->c1_sdiLoggedStatesBuffer[36U] & 2) { |
| 1325 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1326 | "NEUTRAL_STATE", "NEUTRAL_STATE", 5, c1_yb, c1_ac, 1, 31U); |
| 1327 | } |
| 1328 | |
| 1329 | chartInstance->c1_lb_SignalExportProp.logName = ""; |
| 1330 | chartInstance->c1_lb_SignalExportProp.signalName = "NEUTRAL_STATE.NEUTRAL"; |
| 1331 | chartInstance->c1_lb_SignalExportProp.useCustomName = 0; |
| 1332 | chartInstance->c1_lb_SignalExportProp.limitDataPoints = 0; |
| 1333 | chartInstance->c1_lb_SignalExportProp.decimate = 0; |
| 1334 | chartInstance->c1_lb_SignalExportProp.maxPoints = 5000U; |
| 1335 | chartInstance->c1_lb_SignalExportProp.decimation = 2U; |
| 1336 | if (chartInstance->c1_sdiLoggedStatesBuffer[37U] & 4) { |
| 1337 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1338 | "NEUTRAL_STATE.NEUTRAL", "NEUTRAL_STATE/NEUTRAL", 1, |
| 1339 | &chartInstance->c1_lb_SignalExportProp, 36U); |
| 1340 | } |
| 1341 | |
| 1342 | chartInstance->c1_mb_SignalExportProp.logName = ""; |
| 1343 | chartInstance->c1_mb_SignalExportProp.signalName = "NEUTRAL_STATE.NO_NEUTRAL"; |
| 1344 | chartInstance->c1_mb_SignalExportProp.useCustomName = 0; |
| 1345 | chartInstance->c1_mb_SignalExportProp.limitDataPoints = 0; |
| 1346 | chartInstance->c1_mb_SignalExportProp.decimate = 0; |
| 1347 | chartInstance->c1_mb_SignalExportProp.maxPoints = 5000U; |
| 1348 | chartInstance->c1_mb_SignalExportProp.decimation = 2U; |
| 1349 | if (chartInstance->c1_sdiLoggedStatesBuffer[38U] & 4) { |
| 1350 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1351 | "NEUTRAL_STATE.NO_NEUTRAL", "NEUTRAL_STATE/NO_NEUTRAL", 1, |
| 1352 | &chartInstance->c1_mb_SignalExportProp, 32U); |
| 1353 | } |
| 1354 | |
| 1355 | chartInstance->c1_nb_SignalExportProp.logName = ""; |
| 1356 | chartInstance->c1_nb_SignalExportProp.signalName = "NEUTRAL_STATE.SET_NEUTRAL"; |
| 1357 | chartInstance->c1_nb_SignalExportProp.useCustomName = 0; |
| 1358 | chartInstance->c1_nb_SignalExportProp.limitDataPoints = 0; |
| 1359 | chartInstance->c1_nb_SignalExportProp.decimate = 0; |
| 1360 | chartInstance->c1_nb_SignalExportProp.maxPoints = 5000U; |
| 1361 | chartInstance->c1_nb_SignalExportProp.decimation = 2U; |
| 1362 | if (chartInstance->c1_sdiLoggedStatesBuffer[39U] & 4) { |
| 1363 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1364 | "NEUTRAL_STATE.SET_NEUTRAL", "NEUTRAL_STATE/SET_NEUTRAL", 1, |
| 1365 | &chartInstance->c1_nb_SignalExportProp, 34U); |
| 1366 | } |
| 1367 | |
| 1368 | chartInstance->c1_ob_SignalExportProp.logName = ""; |
| 1369 | chartInstance->c1_ob_SignalExportProp.signalName = |
| 1370 | "NEUTRAL_STATE.UNSET_NEUTRAL"; |
| 1371 | chartInstance->c1_ob_SignalExportProp.useCustomName = 0; |
| 1372 | chartInstance->c1_ob_SignalExportProp.limitDataPoints = 0; |
| 1373 | chartInstance->c1_ob_SignalExportProp.decimate = 0; |
| 1374 | chartInstance->c1_ob_SignalExportProp.maxPoints = 5000U; |
| 1375 | chartInstance->c1_ob_SignalExportProp.decimation = 2U; |
| 1376 | if (chartInstance->c1_sdiLoggedStatesBuffer[40U] & 4) { |
| 1377 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1378 | "NEUTRAL_STATE.UNSET_NEUTRAL", "NEUTRAL_STATE/UNSET_NEUTRAL", 1, |
| 1379 | &chartInstance->c1_ob_SignalExportProp, 35U); |
| 1380 | } |
| 1381 | |
| 1382 | if (chartInstance->c1_sdiLoggedStatesBuffer[41U] & 1) { |
| 1383 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1384 | "GEARSHIFT", "GEARSHIFT", 7, c1_bc, c1_cc, sizeof(uint8_T), 1, 1U); |
| 1385 | } |
| 1386 | |
| 1387 | chartInstance->c1_pb_SignalExportProp.logName = ""; |
| 1388 | chartInstance->c1_pb_SignalExportProp.signalName = "GEARSHIFT"; |
| 1389 | chartInstance->c1_pb_SignalExportProp.useCustomName = 0; |
| 1390 | chartInstance->c1_pb_SignalExportProp.limitDataPoints = 0; |
| 1391 | chartInstance->c1_pb_SignalExportProp.decimate = 0; |
| 1392 | chartInstance->c1_pb_SignalExportProp.maxPoints = 5000U; |
| 1393 | chartInstance->c1_pb_SignalExportProp.decimation = 2U; |
| 1394 | if (chartInstance->c1_sdiLoggedStatesBuffer[41U] & 4) { |
| 1395 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1396 | "GEARSHIFT", "GEARSHIFT", 1, &chartInstance->c1_pb_SignalExportProp, 1U); |
| 1397 | } |
| 1398 | |
| 1399 | if (chartInstance->c1_sdiLoggedStatesBuffer[41U] & 2) { |
| 1400 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1401 | "GEARSHIFT", "GEARSHIFT", 19, c1_dc, c1_ec, 1, 1U); |
| 1402 | } |
| 1403 | |
| 1404 | if (chartInstance->c1_sdiLoggedStatesBuffer[42U] & 1) { |
| 1405 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1406 | "GEARSHIFT.DOWNSHIFTING", "GEARSHIFT/DOWNSHIFTING", 5, c1_fc, c1_gc, |
| 1407 | sizeof(uint8_T), 1, 697U); |
| 1408 | } |
| 1409 | |
| 1410 | chartInstance->c1_qb_SignalExportProp.logName = ""; |
| 1411 | chartInstance->c1_qb_SignalExportProp.signalName = "GEARSHIFT.DOWNSHIFTING"; |
| 1412 | chartInstance->c1_qb_SignalExportProp.useCustomName = 0; |
| 1413 | chartInstance->c1_qb_SignalExportProp.limitDataPoints = 0; |
| 1414 | chartInstance->c1_qb_SignalExportProp.decimate = 0; |
| 1415 | chartInstance->c1_qb_SignalExportProp.maxPoints = 5000U; |
| 1416 | chartInstance->c1_qb_SignalExportProp.decimation = 2U; |
| 1417 | if (chartInstance->c1_sdiLoggedStatesBuffer[42U] & 4) { |
| 1418 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1419 | "GEARSHIFT.DOWNSHIFTING", "GEARSHIFT/DOWNSHIFTING", 1, |
| 1420 | &chartInstance->c1_qb_SignalExportProp, 697U); |
| 1421 | } |
| 1422 | |
| 1423 | if (chartInstance->c1_sdiLoggedStatesBuffer[42U] & 2) { |
| 1424 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1425 | "GEARSHIFT.DOWNSHIFTING", "GEARSHIFT/DOWNSHIFTING", 8, c1_hc, c1_ic, 1, |
| 1426 | 697U); |
| 1427 | } |
| 1428 | |
| 1429 | if (chartInstance->c1_sdiLoggedStatesBuffer[43U] & 1) { |
| 1430 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1431 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE", "GEARSHIFT/DOWNSHIFTING/DOWN_BRAKE", |
| 1432 | 3, c1_jc, c1_kc, sizeof(uint8_T), 1, 17U); |
| 1433 | } |
| 1434 | |
| 1435 | chartInstance->c1_rb_SignalExportProp.logName = ""; |
| 1436 | chartInstance->c1_rb_SignalExportProp.signalName = |
| 1437 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE"; |
| 1438 | chartInstance->c1_rb_SignalExportProp.useCustomName = 0; |
| 1439 | chartInstance->c1_rb_SignalExportProp.limitDataPoints = 0; |
| 1440 | chartInstance->c1_rb_SignalExportProp.decimate = 0; |
| 1441 | chartInstance->c1_rb_SignalExportProp.maxPoints = 5000U; |
| 1442 | chartInstance->c1_rb_SignalExportProp.decimation = 2U; |
| 1443 | if (chartInstance->c1_sdiLoggedStatesBuffer[43U] & 4) { |
| 1444 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1445 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE", "GEARSHIFT/DOWNSHIFTING/DOWN_BRAKE", |
| 1446 | 1, &chartInstance->c1_rb_SignalExportProp, 17U); |
| 1447 | } |
| 1448 | |
| 1449 | if (chartInstance->c1_sdiLoggedStatesBuffer[43U] & 2) { |
| 1450 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1451 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE", "GEARSHIFT/DOWNSHIFTING/DOWN_BRAKE", |
| 1452 | 3, c1_lc, c1_mc, 1, 17U); |
| 1453 | } |
| 1454 | |
| 1455 | chartInstance->c1_sb_SignalExportProp.logName = ""; |
| 1456 | chartInstance->c1_sb_SignalExportProp.signalName = |
| 1457 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE.ChangeClutch"; |
| 1458 | chartInstance->c1_sb_SignalExportProp.useCustomName = 0; |
| 1459 | chartInstance->c1_sb_SignalExportProp.limitDataPoints = 0; |
| 1460 | chartInstance->c1_sb_SignalExportProp.decimate = 0; |
| 1461 | chartInstance->c1_sb_SignalExportProp.maxPoints = 5000U; |
| 1462 | chartInstance->c1_sb_SignalExportProp.decimation = 2U; |
| 1463 | if (chartInstance->c1_sdiLoggedStatesBuffer[44U] & 4) { |
| 1464 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1465 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE.ChangeClutch", |
| 1466 | "GEARSHIFT/DOWNSHIFTING/DOWN_BRAKE/ChangeClutch", 1, |
| 1467 | &chartInstance->c1_sb_SignalExportProp, 410U); |
| 1468 | } |
| 1469 | |
| 1470 | chartInstance->c1_tb_SignalExportProp.logName = ""; |
| 1471 | chartInstance->c1_tb_SignalExportProp.signalName = |
| 1472 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE.Default"; |
| 1473 | chartInstance->c1_tb_SignalExportProp.useCustomName = 0; |
| 1474 | chartInstance->c1_tb_SignalExportProp.limitDataPoints = 0; |
| 1475 | chartInstance->c1_tb_SignalExportProp.decimate = 0; |
| 1476 | chartInstance->c1_tb_SignalExportProp.maxPoints = 5000U; |
| 1477 | chartInstance->c1_tb_SignalExportProp.decimation = 2U; |
| 1478 | if (chartInstance->c1_sdiLoggedStatesBuffer[45U] & 4) { |
| 1479 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1480 | "GEARSHIFT.DOWNSHIFTING.DOWN_BRAKE.Default", |
| 1481 | "GEARSHIFT/DOWNSHIFTING/DOWN_BRAKE/Default", 1, |
| 1482 | &chartInstance->c1_tb_SignalExportProp, 409U); |
| 1483 | } |
| 1484 | |
| 1485 | chartInstance->c1_ub_SignalExportProp.logName = ""; |
| 1486 | chartInstance->c1_ub_SignalExportProp.signalName = |
| 1487 | "GEARSHIFT.DOWNSHIFTING.DOWN_PUSH"; |
| 1488 | chartInstance->c1_ub_SignalExportProp.useCustomName = 0; |
| 1489 | chartInstance->c1_ub_SignalExportProp.limitDataPoints = 0; |
| 1490 | chartInstance->c1_ub_SignalExportProp.decimate = 0; |
| 1491 | chartInstance->c1_ub_SignalExportProp.maxPoints = 5000U; |
| 1492 | chartInstance->c1_ub_SignalExportProp.decimation = 2U; |
| 1493 | if (chartInstance->c1_sdiLoggedStatesBuffer[46U] & 4) { |
| 1494 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1495 | "GEARSHIFT.DOWNSHIFTING.DOWN_PUSH", "GEARSHIFT/DOWNSHIFTING/DOWN_PUSH", 1, |
| 1496 | &chartInstance->c1_ub_SignalExportProp, 15U); |
| 1497 | } |
| 1498 | |
| 1499 | chartInstance->c1_vb_SignalExportProp.logName = ""; |
| 1500 | chartInstance->c1_vb_SignalExportProp.signalName = |
| 1501 | "GEARSHIFT.DOWNSHIFTING.DOWN_REBOUND"; |
| 1502 | chartInstance->c1_vb_SignalExportProp.useCustomName = 0; |
| 1503 | chartInstance->c1_vb_SignalExportProp.limitDataPoints = 0; |
| 1504 | chartInstance->c1_vb_SignalExportProp.decimate = 0; |
| 1505 | chartInstance->c1_vb_SignalExportProp.maxPoints = 5000U; |
| 1506 | chartInstance->c1_vb_SignalExportProp.decimation = 2U; |
| 1507 | if (chartInstance->c1_sdiLoggedStatesBuffer[47U] & 4) { |
| 1508 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1509 | "GEARSHIFT.DOWNSHIFTING.DOWN_REBOUND", |
| 1510 | "GEARSHIFT/DOWNSHIFTING/DOWN_REBOUND", 1, |
| 1511 | &chartInstance->c1_vb_SignalExportProp, 16U); |
| 1512 | } |
| 1513 | |
| 1514 | if (chartInstance->c1_sdiLoggedStatesBuffer[48U] & 1) { |
| 1515 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1516 | "GEARSHIFT.DOWNSHIFTING.DOWN_START", "GEARSHIFT/DOWNSHIFTING/DOWN_START", |
| 1517 | 4, c1_nc, c1_oc, sizeof(uint8_T), 1, 14U); |
| 1518 | } |
| 1519 | |
| 1520 | chartInstance->c1_wb_SignalExportProp.logName = ""; |
| 1521 | chartInstance->c1_wb_SignalExportProp.signalName = |
| 1522 | "GEARSHIFT.DOWNSHIFTING.DOWN_START"; |
| 1523 | chartInstance->c1_wb_SignalExportProp.useCustomName = 0; |
| 1524 | chartInstance->c1_wb_SignalExportProp.limitDataPoints = 0; |
| 1525 | chartInstance->c1_wb_SignalExportProp.decimate = 0; |
| 1526 | chartInstance->c1_wb_SignalExportProp.maxPoints = 5000U; |
| 1527 | chartInstance->c1_wb_SignalExportProp.decimation = 2U; |
| 1528 | if (chartInstance->c1_sdiLoggedStatesBuffer[48U] & 4) { |
| 1529 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1530 | "GEARSHIFT.DOWNSHIFTING.DOWN_START", "GEARSHIFT/DOWNSHIFTING/DOWN_START", |
| 1531 | 1, &chartInstance->c1_wb_SignalExportProp, 14U); |
| 1532 | } |
| 1533 | |
| 1534 | if (chartInstance->c1_sdiLoggedStatesBuffer[48U] & 2) { |
| 1535 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1536 | "GEARSHIFT.DOWNSHIFTING.DOWN_START", "GEARSHIFT/DOWNSHIFTING/DOWN_START", |
| 1537 | 4, c1_pc, c1_qc, 1, 14U); |
| 1538 | } |
| 1539 | |
| 1540 | chartInstance->c1_xb_SignalExportProp.logName = ""; |
| 1541 | chartInstance->c1_xb_SignalExportProp.signalName = |
| 1542 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.ChangeClutch"; |
| 1543 | chartInstance->c1_xb_SignalExportProp.useCustomName = 0; |
| 1544 | chartInstance->c1_xb_SignalExportProp.limitDataPoints = 0; |
| 1545 | chartInstance->c1_xb_SignalExportProp.decimate = 0; |
| 1546 | chartInstance->c1_xb_SignalExportProp.maxPoints = 5000U; |
| 1547 | chartInstance->c1_xb_SignalExportProp.decimation = 2U; |
| 1548 | if (chartInstance->c1_sdiLoggedStatesBuffer[49U] & 4) { |
| 1549 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1550 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.ChangeClutch", |
| 1551 | "GEARSHIFT/DOWNSHIFTING/DOWN_START/ChangeClutch", 1, |
| 1552 | &chartInstance->c1_xb_SignalExportProp, 2037U); |
| 1553 | } |
| 1554 | |
| 1555 | chartInstance->c1_yb_SignalExportProp.logName = ""; |
| 1556 | chartInstance->c1_yb_SignalExportProp.signalName = |
| 1557 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.Default"; |
| 1558 | chartInstance->c1_yb_SignalExportProp.useCustomName = 0; |
| 1559 | chartInstance->c1_yb_SignalExportProp.limitDataPoints = 0; |
| 1560 | chartInstance->c1_yb_SignalExportProp.decimate = 0; |
| 1561 | chartInstance->c1_yb_SignalExportProp.maxPoints = 5000U; |
| 1562 | chartInstance->c1_yb_SignalExportProp.decimation = 2U; |
| 1563 | if (chartInstance->c1_sdiLoggedStatesBuffer[50U] & 4) { |
| 1564 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1565 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.Default", |
| 1566 | "GEARSHIFT/DOWNSHIFTING/DOWN_START/Default", 1, |
| 1567 | &chartInstance->c1_yb_SignalExportProp, 406U); |
| 1568 | } |
| 1569 | |
| 1570 | chartInstance->c1_ac_SignalExportProp.logName = ""; |
| 1571 | chartInstance->c1_ac_SignalExportProp.signalName = |
| 1572 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.SettingNeutral"; |
| 1573 | chartInstance->c1_ac_SignalExportProp.useCustomName = 0; |
| 1574 | chartInstance->c1_ac_SignalExportProp.limitDataPoints = 0; |
| 1575 | chartInstance->c1_ac_SignalExportProp.decimate = 0; |
| 1576 | chartInstance->c1_ac_SignalExportProp.maxPoints = 5000U; |
| 1577 | chartInstance->c1_ac_SignalExportProp.decimation = 2U; |
| 1578 | if (chartInstance->c1_sdiLoggedStatesBuffer[51U] & 4) { |
| 1579 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1580 | "GEARSHIFT.DOWNSHIFTING.DOWN_START.SettingNeutral", |
| 1581 | "GEARSHIFT/DOWNSHIFTING/DOWN_START/SettingNeutral", 1, |
| 1582 | &chartInstance->c1_ac_SignalExportProp, 399U); |
| 1583 | } |
| 1584 | |
| 1585 | chartInstance->c1_bc_SignalExportProp.logName = ""; |
| 1586 | chartInstance->c1_bc_SignalExportProp.signalName = "GEARSHIFT.DOWN_END"; |
| 1587 | chartInstance->c1_bc_SignalExportProp.useCustomName = 0; |
| 1588 | chartInstance->c1_bc_SignalExportProp.limitDataPoints = 0; |
| 1589 | chartInstance->c1_bc_SignalExportProp.decimate = 0; |
| 1590 | chartInstance->c1_bc_SignalExportProp.maxPoints = 5000U; |
| 1591 | chartInstance->c1_bc_SignalExportProp.decimation = 2U; |
| 1592 | if (chartInstance->c1_sdiLoggedStatesBuffer[52U] & 4) { |
| 1593 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1594 | "GEARSHIFT.DOWN_END", "GEARSHIFT/DOWN_END", 1, |
| 1595 | &chartInstance->c1_bc_SignalExportProp, 18U); |
| 1596 | } |
| 1597 | |
| 1598 | chartInstance->c1_cc_SignalExportProp.logName = ""; |
| 1599 | chartInstance->c1_cc_SignalExportProp.signalName = "GEARSHIFT.IDLE"; |
| 1600 | chartInstance->c1_cc_SignalExportProp.useCustomName = 0; |
| 1601 | chartInstance->c1_cc_SignalExportProp.limitDataPoints = 0; |
| 1602 | chartInstance->c1_cc_SignalExportProp.decimate = 0; |
| 1603 | chartInstance->c1_cc_SignalExportProp.maxPoints = 5000U; |
| 1604 | chartInstance->c1_cc_SignalExportProp.decimation = 2U; |
| 1605 | if (chartInstance->c1_sdiLoggedStatesBuffer[53U] & 4) { |
| 1606 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1607 | "GEARSHIFT.IDLE", "GEARSHIFT/IDLE", 1, |
| 1608 | &chartInstance->c1_cc_SignalExportProp, 5U); |
| 1609 | } |
| 1610 | |
| 1611 | chartInstance->c1_dc_SignalExportProp.logName = ""; |
| 1612 | chartInstance->c1_dc_SignalExportProp.signalName = "GEARSHIFT.INIT"; |
| 1613 | chartInstance->c1_dc_SignalExportProp.useCustomName = 0; |
| 1614 | chartInstance->c1_dc_SignalExportProp.limitDataPoints = 0; |
| 1615 | chartInstance->c1_dc_SignalExportProp.decimate = 0; |
| 1616 | chartInstance->c1_dc_SignalExportProp.maxPoints = 5000U; |
| 1617 | chartInstance->c1_dc_SignalExportProp.decimation = 2U; |
| 1618 | if (chartInstance->c1_sdiLoggedStatesBuffer[54U] & 4) { |
| 1619 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1620 | "GEARSHIFT.INIT", "GEARSHIFT/INIT", 1, |
| 1621 | &chartInstance->c1_dc_SignalExportProp, 7U); |
| 1622 | } |
| 1623 | |
| 1624 | if (chartInstance->c1_sdiLoggedStatesBuffer[55U] & 1) { |
| 1625 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1626 | "GEARSHIFT.UPSHIFTING", "GEARSHIFT/UPSHIFTING", 5, c1_rc, c1_sc, sizeof |
| 1627 | (uint8_T), 1, 693U); |
| 1628 | } |
| 1629 | |
| 1630 | chartInstance->c1_ec_SignalExportProp.logName = ""; |
| 1631 | chartInstance->c1_ec_SignalExportProp.signalName = "GEARSHIFT.UPSHIFTING"; |
| 1632 | chartInstance->c1_ec_SignalExportProp.useCustomName = 0; |
| 1633 | chartInstance->c1_ec_SignalExportProp.limitDataPoints = 0; |
| 1634 | chartInstance->c1_ec_SignalExportProp.decimate = 0; |
| 1635 | chartInstance->c1_ec_SignalExportProp.maxPoints = 5000U; |
| 1636 | chartInstance->c1_ec_SignalExportProp.decimation = 2U; |
| 1637 | if (chartInstance->c1_sdiLoggedStatesBuffer[55U] & 4) { |
| 1638 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1639 | "GEARSHIFT.UPSHIFTING", "GEARSHIFT/UPSHIFTING", 1, |
| 1640 | &chartInstance->c1_ec_SignalExportProp, 693U); |
| 1641 | } |
| 1642 | |
| 1643 | if (chartInstance->c1_sdiLoggedStatesBuffer[55U] & 2) { |
| 1644 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1645 | "GEARSHIFT.UPSHIFTING", "GEARSHIFT/UPSHIFTING", 8, c1_tc, c1_uc, 1, 693U); |
| 1646 | } |
| 1647 | |
| 1648 | chartInstance->c1_fc_SignalExportProp.logName = ""; |
| 1649 | chartInstance->c1_fc_SignalExportProp.signalName = |
| 1650 | "GEARSHIFT.UPSHIFTING.UP_BRAKE"; |
| 1651 | chartInstance->c1_fc_SignalExportProp.useCustomName = 0; |
| 1652 | chartInstance->c1_fc_SignalExportProp.limitDataPoints = 0; |
| 1653 | chartInstance->c1_fc_SignalExportProp.decimate = 0; |
| 1654 | chartInstance->c1_fc_SignalExportProp.maxPoints = 5000U; |
| 1655 | chartInstance->c1_fc_SignalExportProp.decimation = 2U; |
| 1656 | if (chartInstance->c1_sdiLoggedStatesBuffer[56U] & 4) { |
| 1657 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1658 | "GEARSHIFT.UPSHIFTING.UP_BRAKE", "GEARSHIFT/UPSHIFTING/UP_BRAKE", 1, |
| 1659 | &chartInstance->c1_fc_SignalExportProp, 12U); |
| 1660 | } |
| 1661 | |
| 1662 | if (chartInstance->c1_sdiLoggedStatesBuffer[57U] & 1) { |
| 1663 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1664 | "GEARSHIFT.UPSHIFTING.UP_PUSH", "GEARSHIFT/UPSHIFTING/UP_PUSH", 3, c1_vc, |
| 1665 | c1_wc, sizeof(uint8_T), 1, 10U); |
| 1666 | } |
| 1667 | |
| 1668 | chartInstance->c1_gc_SignalExportProp.logName = ""; |
| 1669 | chartInstance->c1_gc_SignalExportProp.signalName = |
| 1670 | "GEARSHIFT.UPSHIFTING.UP_PUSH"; |
| 1671 | chartInstance->c1_gc_SignalExportProp.useCustomName = 0; |
| 1672 | chartInstance->c1_gc_SignalExportProp.limitDataPoints = 0; |
| 1673 | chartInstance->c1_gc_SignalExportProp.decimate = 0; |
| 1674 | chartInstance->c1_gc_SignalExportProp.maxPoints = 5000U; |
| 1675 | chartInstance->c1_gc_SignalExportProp.decimation = 2U; |
| 1676 | if (chartInstance->c1_sdiLoggedStatesBuffer[57U] & 4) { |
| 1677 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1678 | "GEARSHIFT.UPSHIFTING.UP_PUSH", "GEARSHIFT/UPSHIFTING/UP_PUSH", 1, |
| 1679 | &chartInstance->c1_gc_SignalExportProp, 10U); |
| 1680 | } |
| 1681 | |
| 1682 | if (chartInstance->c1_sdiLoggedStatesBuffer[57U] & 2) { |
| 1683 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1684 | "GEARSHIFT.UPSHIFTING.UP_PUSH", "GEARSHIFT/UPSHIFTING/UP_PUSH", 3, c1_xc, |
| 1685 | c1_yc, 1, 10U); |
| 1686 | } |
| 1687 | |
| 1688 | chartInstance->c1_hc_SignalExportProp.logName = ""; |
| 1689 | chartInstance->c1_hc_SignalExportProp.signalName = |
| 1690 | "GEARSHIFT.UPSHIFTING.UP_PUSH.CutOff"; |
| 1691 | chartInstance->c1_hc_SignalExportProp.useCustomName = 0; |
| 1692 | chartInstance->c1_hc_SignalExportProp.limitDataPoints = 0; |
| 1693 | chartInstance->c1_hc_SignalExportProp.decimate = 0; |
| 1694 | chartInstance->c1_hc_SignalExportProp.maxPoints = 5000U; |
| 1695 | chartInstance->c1_hc_SignalExportProp.decimation = 2U; |
| 1696 | if (chartInstance->c1_sdiLoggedStatesBuffer[58U] & 4) { |
| 1697 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1698 | "GEARSHIFT.UPSHIFTING.UP_PUSH.CutOff", |
| 1699 | "GEARSHIFT/UPSHIFTING/UP_PUSH/CutOff", 1, |
| 1700 | &chartInstance->c1_hc_SignalExportProp, 423U); |
| 1701 | } |
| 1702 | |
| 1703 | chartInstance->c1_ic_SignalExportProp.logName = ""; |
| 1704 | chartInstance->c1_ic_SignalExportProp.signalName = |
| 1705 | "GEARSHIFT.UPSHIFTING.UP_PUSH.Default"; |
| 1706 | chartInstance->c1_ic_SignalExportProp.useCustomName = 0; |
| 1707 | chartInstance->c1_ic_SignalExportProp.limitDataPoints = 0; |
| 1708 | chartInstance->c1_ic_SignalExportProp.decimate = 0; |
| 1709 | chartInstance->c1_ic_SignalExportProp.maxPoints = 5000U; |
| 1710 | chartInstance->c1_ic_SignalExportProp.decimation = 2U; |
| 1711 | if (chartInstance->c1_sdiLoggedStatesBuffer[59U] & 4) { |
| 1712 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1713 | "GEARSHIFT.UPSHIFTING.UP_PUSH.Default", |
| 1714 | "GEARSHIFT/UPSHIFTING/UP_PUSH/Default", 1, |
| 1715 | &chartInstance->c1_ic_SignalExportProp, 422U); |
| 1716 | } |
| 1717 | |
| 1718 | if (chartInstance->c1_sdiLoggedStatesBuffer[60U] & 1) { |
| 1719 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1720 | "GEARSHIFT.UPSHIFTING.UP_REBOUND", "GEARSHIFT/UPSHIFTING/UP_REBOUND", 3, |
| 1721 | c1_ad, c1_bd, sizeof(uint8_T), 1, 11U); |
| 1722 | } |
| 1723 | |
| 1724 | chartInstance->c1_jc_SignalExportProp.logName = ""; |
| 1725 | chartInstance->c1_jc_SignalExportProp.signalName = |
| 1726 | "GEARSHIFT.UPSHIFTING.UP_REBOUND"; |
| 1727 | chartInstance->c1_jc_SignalExportProp.useCustomName = 0; |
| 1728 | chartInstance->c1_jc_SignalExportProp.limitDataPoints = 0; |
| 1729 | chartInstance->c1_jc_SignalExportProp.decimate = 0; |
| 1730 | chartInstance->c1_jc_SignalExportProp.maxPoints = 5000U; |
| 1731 | chartInstance->c1_jc_SignalExportProp.decimation = 2U; |
| 1732 | if (chartInstance->c1_sdiLoggedStatesBuffer[60U] & 4) { |
| 1733 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1734 | "GEARSHIFT.UPSHIFTING.UP_REBOUND", "GEARSHIFT/UPSHIFTING/UP_REBOUND", 1, |
| 1735 | &chartInstance->c1_jc_SignalExportProp, 11U); |
| 1736 | } |
| 1737 | |
| 1738 | if (chartInstance->c1_sdiLoggedStatesBuffer[60U] & 2) { |
| 1739 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1740 | "GEARSHIFT.UPSHIFTING.UP_REBOUND", "GEARSHIFT/UPSHIFTING/UP_REBOUND", 3, |
| 1741 | c1_cd, c1_dd, 1, 11U); |
| 1742 | } |
| 1743 | |
| 1744 | chartInstance->c1_kc_SignalExportProp.logName = ""; |
| 1745 | chartInstance->c1_kc_SignalExportProp.signalName = |
| 1746 | "GEARSHIFT.UPSHIFTING.UP_REBOUND.Default"; |
| 1747 | chartInstance->c1_kc_SignalExportProp.useCustomName = 0; |
| 1748 | chartInstance->c1_kc_SignalExportProp.limitDataPoints = 0; |
| 1749 | chartInstance->c1_kc_SignalExportProp.decimate = 0; |
| 1750 | chartInstance->c1_kc_SignalExportProp.maxPoints = 5000U; |
| 1751 | chartInstance->c1_kc_SignalExportProp.decimation = 2U; |
| 1752 | if (chartInstance->c1_sdiLoggedStatesBuffer[61U] & 4) { |
| 1753 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1754 | "GEARSHIFT.UPSHIFTING.UP_REBOUND.Default", |
| 1755 | "GEARSHIFT/UPSHIFTING/UP_REBOUND/Default", 1, |
| 1756 | &chartInstance->c1_kc_SignalExportProp, 390U); |
| 1757 | } |
| 1758 | |
| 1759 | chartInstance->c1_lc_SignalExportProp.logName = ""; |
| 1760 | chartInstance->c1_lc_SignalExportProp.signalName = |
| 1761 | "GEARSHIFT.UPSHIFTING.UP_REBOUND.SettingNeutral"; |
| 1762 | chartInstance->c1_lc_SignalExportProp.useCustomName = 0; |
| 1763 | chartInstance->c1_lc_SignalExportProp.limitDataPoints = 0; |
| 1764 | chartInstance->c1_lc_SignalExportProp.decimate = 0; |
| 1765 | chartInstance->c1_lc_SignalExportProp.maxPoints = 5000U; |
| 1766 | chartInstance->c1_lc_SignalExportProp.decimation = 2U; |
| 1767 | if (chartInstance->c1_sdiLoggedStatesBuffer[62U] & 4) { |
| 1768 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1769 | "GEARSHIFT.UPSHIFTING.UP_REBOUND.SettingNeutral", |
| 1770 | "GEARSHIFT/UPSHIFTING/UP_REBOUND/SettingNeutral", 1, |
| 1771 | &chartInstance->c1_lc_SignalExportProp, 391U); |
| 1772 | } |
| 1773 | |
| 1774 | if (chartInstance->c1_sdiLoggedStatesBuffer[63U] & 1) { |
| 1775 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1776 | "GEARSHIFT.UPSHIFTING.UP_START", "GEARSHIFT/UPSHIFTING/UP_START", 3, c1_ed, |
| 1777 | c1_fd, sizeof(uint8_T), 1, 9U); |
| 1778 | } |
| 1779 | |
| 1780 | chartInstance->c1_mc_SignalExportProp.logName = ""; |
| 1781 | chartInstance->c1_mc_SignalExportProp.signalName = |
| 1782 | "GEARSHIFT.UPSHIFTING.UP_START"; |
| 1783 | chartInstance->c1_mc_SignalExportProp.useCustomName = 0; |
| 1784 | chartInstance->c1_mc_SignalExportProp.limitDataPoints = 0; |
| 1785 | chartInstance->c1_mc_SignalExportProp.decimate = 0; |
| 1786 | chartInstance->c1_mc_SignalExportProp.maxPoints = 5000U; |
| 1787 | chartInstance->c1_mc_SignalExportProp.decimation = 2U; |
| 1788 | if (chartInstance->c1_sdiLoggedStatesBuffer[63U] & 4) { |
| 1789 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1790 | "GEARSHIFT.UPSHIFTING.UP_START", "GEARSHIFT/UPSHIFTING/UP_START", 1, |
| 1791 | &chartInstance->c1_mc_SignalExportProp, 9U); |
| 1792 | } |
| 1793 | |
| 1794 | if (chartInstance->c1_sdiLoggedStatesBuffer[63U] & 2) { |
| 1795 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1796 | "GEARSHIFT.UPSHIFTING.UP_START", "GEARSHIFT/UPSHIFTING/UP_START", 3, c1_gd, |
| 1797 | c1_hd, 1, 9U); |
| 1798 | } |
| 1799 | |
| 1800 | chartInstance->c1_nc_SignalExportProp.logName = ""; |
| 1801 | chartInstance->c1_nc_SignalExportProp.signalName = |
| 1802 | "GEARSHIFT.UPSHIFTING.UP_START.Default"; |
| 1803 | chartInstance->c1_nc_SignalExportProp.useCustomName = 0; |
| 1804 | chartInstance->c1_nc_SignalExportProp.limitDataPoints = 0; |
| 1805 | chartInstance->c1_nc_SignalExportProp.decimate = 0; |
| 1806 | chartInstance->c1_nc_SignalExportProp.maxPoints = 5000U; |
| 1807 | chartInstance->c1_nc_SignalExportProp.decimation = 2U; |
| 1808 | if (chartInstance->c1_sdiLoggedStatesBuffer[64U] & 4) { |
| 1809 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1810 | "GEARSHIFT.UPSHIFTING.UP_START.Default", |
| 1811 | "GEARSHIFT/UPSHIFTING/UP_START/Default", 1, |
| 1812 | &chartInstance->c1_nc_SignalExportProp, 385U); |
| 1813 | } |
| 1814 | |
| 1815 | chartInstance->c1_oc_SignalExportProp.logName = ""; |
| 1816 | chartInstance->c1_oc_SignalExportProp.signalName = |
| 1817 | "GEARSHIFT.UPSHIFTING.UP_START.SettingNeutral"; |
| 1818 | chartInstance->c1_oc_SignalExportProp.useCustomName = 0; |
| 1819 | chartInstance->c1_oc_SignalExportProp.limitDataPoints = 0; |
| 1820 | chartInstance->c1_oc_SignalExportProp.decimate = 0; |
| 1821 | chartInstance->c1_oc_SignalExportProp.maxPoints = 5000U; |
| 1822 | chartInstance->c1_oc_SignalExportProp.decimation = 2U; |
| 1823 | if (chartInstance->c1_sdiLoggedStatesBuffer[65U] & 4) { |
| 1824 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1825 | "GEARSHIFT.UPSHIFTING.UP_START.SettingNeutral", |
| 1826 | "GEARSHIFT/UPSHIFTING/UP_START/SettingNeutral", 1, |
| 1827 | &chartInstance->c1_oc_SignalExportProp, 383U); |
| 1828 | } |
| 1829 | |
| 1830 | chartInstance->c1_pc_SignalExportProp.logName = ""; |
| 1831 | chartInstance->c1_pc_SignalExportProp.signalName = "GEARSHIFT.UP_END"; |
| 1832 | chartInstance->c1_pc_SignalExportProp.useCustomName = 0; |
| 1833 | chartInstance->c1_pc_SignalExportProp.limitDataPoints = 0; |
| 1834 | chartInstance->c1_pc_SignalExportProp.decimate = 0; |
| 1835 | chartInstance->c1_pc_SignalExportProp.maxPoints = 5000U; |
| 1836 | chartInstance->c1_pc_SignalExportProp.decimation = 2U; |
| 1837 | if (chartInstance->c1_sdiLoggedStatesBuffer[66U] & 4) { |
| 1838 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1839 | "GEARSHIFT.UP_END", "GEARSHIFT/UP_END", 1, |
| 1840 | &chartInstance->c1_pc_SignalExportProp, 13U); |
| 1841 | } |
| 1842 | |
| 1843 | if (chartInstance->c1_sdiLoggedStatesBuffer[67U] & 1) { |
| 1844 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1845 | "START_ENGINE", "START_ENGINE", 4, c1_id, c1_jd, sizeof(uint8_T), 1, 479U); |
| 1846 | } |
| 1847 | |
| 1848 | chartInstance->c1_qc_SignalExportProp.logName = ""; |
| 1849 | chartInstance->c1_qc_SignalExportProp.signalName = "START_ENGINE"; |
| 1850 | chartInstance->c1_qc_SignalExportProp.useCustomName = 0; |
| 1851 | chartInstance->c1_qc_SignalExportProp.limitDataPoints = 0; |
| 1852 | chartInstance->c1_qc_SignalExportProp.decimate = 0; |
| 1853 | chartInstance->c1_qc_SignalExportProp.maxPoints = 5000U; |
| 1854 | chartInstance->c1_qc_SignalExportProp.decimation = 2U; |
| 1855 | if (chartInstance->c1_sdiLoggedStatesBuffer[67U] & 4) { |
| 1856 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1857 | "START_ENGINE", "START_ENGINE", 1, &chartInstance->c1_qc_SignalExportProp, |
| 1858 | 479U); |
| 1859 | } |
| 1860 | |
| 1861 | if (chartInstance->c1_sdiLoggedStatesBuffer[67U] & 2) { |
| 1862 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1863 | "START_ENGINE", "START_ENGINE", 4, c1_kd, c1_ld, 1, 479U); |
| 1864 | } |
| 1865 | |
| 1866 | chartInstance->c1_rc_SignalExportProp.logName = ""; |
| 1867 | chartInstance->c1_rc_SignalExportProp.signalName = "START_ENGINE.START"; |
| 1868 | chartInstance->c1_rc_SignalExportProp.useCustomName = 0; |
| 1869 | chartInstance->c1_rc_SignalExportProp.limitDataPoints = 0; |
| 1870 | chartInstance->c1_rc_SignalExportProp.decimate = 0; |
| 1871 | chartInstance->c1_rc_SignalExportProp.maxPoints = 5000U; |
| 1872 | chartInstance->c1_rc_SignalExportProp.decimation = 2U; |
| 1873 | if (chartInstance->c1_sdiLoggedStatesBuffer[68U] & 4) { |
| 1874 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1875 | "START_ENGINE.START", "START_ENGINE/START", 1, |
| 1876 | &chartInstance->c1_rc_SignalExportProp, 482U); |
| 1877 | } |
| 1878 | |
| 1879 | chartInstance->c1_sc_SignalExportProp.logName = ""; |
| 1880 | chartInstance->c1_sc_SignalExportProp.signalName = "START_ENGINE.STOP"; |
| 1881 | chartInstance->c1_sc_SignalExportProp.useCustomName = 0; |
| 1882 | chartInstance->c1_sc_SignalExportProp.limitDataPoints = 0; |
| 1883 | chartInstance->c1_sc_SignalExportProp.decimate = 0; |
| 1884 | chartInstance->c1_sc_SignalExportProp.maxPoints = 5000U; |
| 1885 | chartInstance->c1_sc_SignalExportProp.decimation = 2U; |
| 1886 | if (chartInstance->c1_sdiLoggedStatesBuffer[69U] & 4) { |
| 1887 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1888 | "START_ENGINE.STOP", "START_ENGINE/STOP", 1, |
| 1889 | &chartInstance->c1_sc_SignalExportProp, 483U); |
| 1890 | } |
| 1891 | |
| 1892 | chartInstance->c1_tc_SignalExportProp.logName = ""; |
| 1893 | chartInstance->c1_tc_SignalExportProp.signalName = "START_ENGINE.WAIT"; |
| 1894 | chartInstance->c1_tc_SignalExportProp.useCustomName = 0; |
| 1895 | chartInstance->c1_tc_SignalExportProp.limitDataPoints = 0; |
| 1896 | chartInstance->c1_tc_SignalExportProp.decimate = 0; |
| 1897 | chartInstance->c1_tc_SignalExportProp.maxPoints = 5000U; |
| 1898 | chartInstance->c1_tc_SignalExportProp.decimation = 2U; |
| 1899 | if (chartInstance->c1_sdiLoggedStatesBuffer[70U] & 4) { |
| 1900 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1901 | "START_ENGINE.WAIT", "START_ENGINE/WAIT", 1, |
| 1902 | &chartInstance->c1_tc_SignalExportProp, 494U); |
| 1903 | } |
| 1904 | |
| 1905 | if (chartInstance->c1_sdiLoggedStatesBuffer[71U] & 1) { |
| 1906 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1907 | "SCAN_ADC", "SCAN_ADC", 2, c1_md, c1_nd, sizeof(uint8_T), 1, 929U); |
| 1908 | } |
| 1909 | |
| 1910 | chartInstance->c1_uc_SignalExportProp.logName = ""; |
| 1911 | chartInstance->c1_uc_SignalExportProp.signalName = "SCAN_ADC"; |
| 1912 | chartInstance->c1_uc_SignalExportProp.useCustomName = 0; |
| 1913 | chartInstance->c1_uc_SignalExportProp.limitDataPoints = 0; |
| 1914 | chartInstance->c1_uc_SignalExportProp.decimate = 0; |
| 1915 | chartInstance->c1_uc_SignalExportProp.maxPoints = 5000U; |
| 1916 | chartInstance->c1_uc_SignalExportProp.decimation = 2U; |
| 1917 | if (chartInstance->c1_sdiLoggedStatesBuffer[71U] & 4) { |
| 1918 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1919 | "SCAN_ADC", "SCAN_ADC", 1, &chartInstance->c1_uc_SignalExportProp, 929U); |
| 1920 | } |
| 1921 | |
| 1922 | if (chartInstance->c1_sdiLoggedStatesBuffer[71U] & 2) { |
| 1923 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1924 | "SCAN_ADC", "SCAN_ADC", 2, c1_od, c1_pd, 1, 929U); |
| 1925 | } |
| 1926 | |
| 1927 | chartInstance->c1_vc_SignalExportProp.logName = ""; |
| 1928 | chartInstance->c1_vc_SignalExportProp.signalName = "SCAN_ADC.SCAN"; |
| 1929 | chartInstance->c1_vc_SignalExportProp.useCustomName = 0; |
| 1930 | chartInstance->c1_vc_SignalExportProp.limitDataPoints = 0; |
| 1931 | chartInstance->c1_vc_SignalExportProp.decimate = 0; |
| 1932 | chartInstance->c1_vc_SignalExportProp.maxPoints = 5000U; |
| 1933 | chartInstance->c1_vc_SignalExportProp.decimation = 2U; |
| 1934 | if (chartInstance->c1_sdiLoggedStatesBuffer[72U] & 4) { |
| 1935 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1936 | "SCAN_ADC.SCAN", "SCAN_ADC/SCAN", 1, |
| 1937 | &chartInstance->c1_vc_SignalExportProp, 932U); |
| 1938 | } |
| 1939 | |
| 1940 | if (chartInstance->c1_sdiLoggedStatesBuffer[73U] & 1) { |
| 1941 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1942 | "EEPROM_TRIGGER", "EEPROM_TRIGGER", 3, c1_qd, c1_rd, sizeof(uint8_T), 1, |
| 1943 | 940U); |
| 1944 | } |
| 1945 | |
| 1946 | chartInstance->c1_wc_SignalExportProp.logName = ""; |
| 1947 | chartInstance->c1_wc_SignalExportProp.signalName = "EEPROM_TRIGGER"; |
| 1948 | chartInstance->c1_wc_SignalExportProp.useCustomName = 0; |
| 1949 | chartInstance->c1_wc_SignalExportProp.limitDataPoints = 0; |
| 1950 | chartInstance->c1_wc_SignalExportProp.decimate = 0; |
| 1951 | chartInstance->c1_wc_SignalExportProp.maxPoints = 5000U; |
| 1952 | chartInstance->c1_wc_SignalExportProp.decimation = 2U; |
| 1953 | if (chartInstance->c1_sdiLoggedStatesBuffer[73U] & 4) { |
| 1954 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1955 | "EEPROM_TRIGGER", "EEPROM_TRIGGER", 1, |
| 1956 | &chartInstance->c1_wc_SignalExportProp, 940U); |
| 1957 | } |
| 1958 | |
| 1959 | if (chartInstance->c1_sdiLoggedStatesBuffer[73U] & 2) { |
| 1960 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1961 | "EEPROM_TRIGGER", "EEPROM_TRIGGER", 3, c1_sd, c1_td, 1, 940U); |
| 1962 | } |
| 1963 | |
| 1964 | chartInstance->c1_xc_SignalExportProp.logName = ""; |
| 1965 | chartInstance->c1_xc_SignalExportProp.signalName = "EEPROM_TRIGGER.SEND"; |
| 1966 | chartInstance->c1_xc_SignalExportProp.useCustomName = 0; |
| 1967 | chartInstance->c1_xc_SignalExportProp.limitDataPoints = 0; |
| 1968 | chartInstance->c1_xc_SignalExportProp.decimate = 0; |
| 1969 | chartInstance->c1_xc_SignalExportProp.maxPoints = 5000U; |
| 1970 | chartInstance->c1_xc_SignalExportProp.decimation = 2U; |
| 1971 | if (chartInstance->c1_sdiLoggedStatesBuffer[74U] & 4) { |
| 1972 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1973 | "EEPROM_TRIGGER.SEND", "EEPROM_TRIGGER/SEND", 1, |
| 1974 | &chartInstance->c1_xc_SignalExportProp, 946U); |
| 1975 | } |
| 1976 | |
| 1977 | chartInstance->c1_yc_SignalExportProp.logName = ""; |
| 1978 | chartInstance->c1_yc_SignalExportProp.signalName = "EEPROM_TRIGGER.WAIT"; |
| 1979 | chartInstance->c1_yc_SignalExportProp.useCustomName = 0; |
| 1980 | chartInstance->c1_yc_SignalExportProp.limitDataPoints = 0; |
| 1981 | chartInstance->c1_yc_SignalExportProp.decimate = 0; |
| 1982 | chartInstance->c1_yc_SignalExportProp.maxPoints = 5000U; |
| 1983 | chartInstance->c1_yc_SignalExportProp.decimation = 2U; |
| 1984 | if (chartInstance->c1_sdiLoggedStatesBuffer[75U] & 4) { |
| 1985 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1986 | "EEPROM_TRIGGER.WAIT", "EEPROM_TRIGGER/WAIT", 1, |
| 1987 | &chartInstance->c1_yc_SignalExportProp, 944U); |
| 1988 | } |
| 1989 | |
| 1990 | if (chartInstance->c1_sdiLoggedStatesBuffer[76U] & 1) { |
| 1991 | sdi_register_child_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 1992 | "ANTISTALL_ENABLE", "ANTISTALL_ENABLE", 3, c1_ud, c1_vd, sizeof(uint8_T), |
| 1993 | 1, 1069U); |
| 1994 | } |
| 1995 | |
| 1996 | chartInstance->c1_ad_SignalExportProp.logName = ""; |
| 1997 | chartInstance->c1_ad_SignalExportProp.signalName = "ANTISTALL_ENABLE"; |
| 1998 | chartInstance->c1_ad_SignalExportProp.useCustomName = 0; |
| 1999 | chartInstance->c1_ad_SignalExportProp.limitDataPoints = 0; |
| 2000 | chartInstance->c1_ad_SignalExportProp.decimate = 0; |
| 2001 | chartInstance->c1_ad_SignalExportProp.maxPoints = 5000U; |
| 2002 | chartInstance->c1_ad_SignalExportProp.decimation = 2U; |
| 2003 | if (chartInstance->c1_sdiLoggedStatesBuffer[76U] & 4) { |
| 2004 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 2005 | "ANTISTALL_ENABLE", "ANTISTALL_ENABLE", 1, |
| 2006 | &chartInstance->c1_ad_SignalExportProp, 1069U); |
| 2007 | } |
| 2008 | |
| 2009 | if (chartInstance->c1_sdiLoggedStatesBuffer[76U] & 2) { |
| 2010 | sdi_register_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 2011 | "ANTISTALL_ENABLE", "ANTISTALL_ENABLE", 3, c1_wd, c1_xd, 1, 1069U); |
| 2012 | } |
| 2013 | |
| 2014 | chartInstance->c1_bd_SignalExportProp.logName = ""; |
| 2015 | chartInstance->c1_bd_SignalExportProp.signalName = "ANTISTALL_ENABLE.DISABLE"; |
| 2016 | chartInstance->c1_bd_SignalExportProp.useCustomName = 0; |
| 2017 | chartInstance->c1_bd_SignalExportProp.limitDataPoints = 0; |
| 2018 | chartInstance->c1_bd_SignalExportProp.decimate = 0; |
| 2019 | chartInstance->c1_bd_SignalExportProp.maxPoints = 5000U; |
| 2020 | chartInstance->c1_bd_SignalExportProp.decimation = 2U; |
| 2021 | if (chartInstance->c1_sdiLoggedStatesBuffer[77U] & 4) { |
| 2022 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 2023 | "ANTISTALL_ENABLE.DISABLE", "ANTISTALL_ENABLE/DISABLE", 1, |
| 2024 | &chartInstance->c1_bd_SignalExportProp, 1070U); |
| 2025 | } |
| 2026 | |
| 2027 | chartInstance->c1_cd_SignalExportProp.logName = ""; |
| 2028 | chartInstance->c1_cd_SignalExportProp.signalName = "ANTISTALL_ENABLE.ENABLE"; |
| 2029 | chartInstance->c1_cd_SignalExportProp.useCustomName = 0; |
| 2030 | chartInstance->c1_cd_SignalExportProp.limitDataPoints = 0; |
| 2031 | chartInstance->c1_cd_SignalExportProp.decimate = 0; |
| 2032 | chartInstance->c1_cd_SignalExportProp.maxPoints = 5000U; |
| 2033 | chartInstance->c1_cd_SignalExportProp.decimation = 2U; |
| 2034 | if (chartInstance->c1_sdiLoggedStatesBuffer[78U] & 4) { |
| 2035 | sdi_register_self_activity_signal(&chartInstance->c1_sdiBlockInfo, |
| 2036 | "ANTISTALL_ENABLE.ENABLE", "ANTISTALL_ENABLE/ENABLE", 1, |
| 2037 | &chartInstance->c1_cd_SignalExportProp, 1072U); |
| 2038 | } |
| 2039 | |
| 2040 | chartInstance->c1_dd_SignalExportProp.logName = ""; |
| 2041 | chartInstance->c1_dd_SignalExportProp.signalName = "clutchCurrVal"; |
| 2042 | chartInstance->c1_dd_SignalExportProp.useCustomName = 0; |
| 2043 | chartInstance->c1_dd_SignalExportProp.limitDataPoints = 0; |
| 2044 | chartInstance->c1_dd_SignalExportProp.decimate = 0; |
| 2045 | chartInstance->c1_dd_SignalExportProp.maxPoints = 5000U; |
| 2046 | chartInstance->c1_dd_SignalExportProp.decimation = 1U; |
| 2047 | if (chartInstance->c1_sdiLoggedDataBuffer[0U]) { |
| 2048 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2049 | "clutchCurrVal", "", 1, c1_yd, 1, 3, 0, 0, |
| 2050 | &chartInstance->c1_dd_SignalExportProp, "", 123U); |
| 2051 | } |
| 2052 | |
| 2053 | chartInstance->c1_ed_SignalExportProp.logName = ""; |
| 2054 | chartInstance->c1_ed_SignalExportProp.signalName = "lastModeCom"; |
| 2055 | chartInstance->c1_ed_SignalExportProp.useCustomName = 0; |
| 2056 | chartInstance->c1_ed_SignalExportProp.limitDataPoints = 0; |
| 2057 | chartInstance->c1_ed_SignalExportProp.decimate = 0; |
| 2058 | chartInstance->c1_ed_SignalExportProp.maxPoints = 5000U; |
| 2059 | chartInstance->c1_ed_SignalExportProp.decimation = 1U; |
| 2060 | if (chartInstance->c1_sdiLoggedDataBuffer[1U]) { |
| 2061 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2062 | "lastModeCom", "", 1, c1_ae, 1, 5, 0, 0, |
| 2063 | &chartInstance->c1_ed_SignalExportProp, "", 834U); |
| 2064 | } |
| 2065 | |
| 2066 | chartInstance->c1_fd_SignalExportProp.logName = ""; |
| 2067 | chartInstance->c1_fd_SignalExportProp.signalName = "lastShift"; |
| 2068 | chartInstance->c1_fd_SignalExportProp.useCustomName = 0; |
| 2069 | chartInstance->c1_fd_SignalExportProp.limitDataPoints = 0; |
| 2070 | chartInstance->c1_fd_SignalExportProp.decimate = 0; |
| 2071 | chartInstance->c1_fd_SignalExportProp.maxPoints = 5000U; |
| 2072 | chartInstance->c1_fd_SignalExportProp.decimation = 1U; |
| 2073 | if (chartInstance->c1_sdiLoggedDataBuffer[6U]) { |
| 2074 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2075 | "lastShift", "", 1, c1_be, 1, 3, 0, 0, |
| 2076 | &chartInstance->c1_fd_SignalExportProp, "", 715U); |
| 2077 | } |
| 2078 | |
| 2079 | chartInstance->c1_gd_SignalExportProp.logName = ""; |
| 2080 | chartInstance->c1_gd_SignalExportProp.signalName = "stateFb"; |
| 2081 | chartInstance->c1_gd_SignalExportProp.useCustomName = 0; |
| 2082 | chartInstance->c1_gd_SignalExportProp.limitDataPoints = 0; |
| 2083 | chartInstance->c1_gd_SignalExportProp.decimate = 0; |
| 2084 | chartInstance->c1_gd_SignalExportProp.maxPoints = 5000U; |
| 2085 | chartInstance->c1_gd_SignalExportProp.decimation = 1U; |
| 2086 | if (chartInstance->c1_sdiLoggedDataBuffer[8U]) { |
| 2087 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2088 | "stateFb", "", 1, c1_ce, 1, 5, 0, 0, |
| 2089 | &chartInstance->c1_gd_SignalExportProp, "", 833U); |
| 2090 | } |
| 2091 | |
| 2092 | chartInstance->c1_hd_SignalExportProp.logName = ""; |
| 2093 | chartInstance->c1_hd_SignalExportProp.signalName = "antiStallEnable"; |
| 2094 | chartInstance->c1_hd_SignalExportProp.useCustomName = 0; |
| 2095 | chartInstance->c1_hd_SignalExportProp.limitDataPoints = 0; |
| 2096 | chartInstance->c1_hd_SignalExportProp.decimate = 0; |
| 2097 | chartInstance->c1_hd_SignalExportProp.maxPoints = 5000U; |
| 2098 | chartInstance->c1_hd_SignalExportProp.decimation = 1U; |
| 2099 | if (chartInstance->c1_sdiLoggedDataBuffer[14U]) { |
| 2100 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2101 | "antiStallEnable", "", 1, c1_de, 1, 3, 0, 0, |
| 2102 | &chartInstance->c1_hd_SignalExportProp, "", 1073U); |
| 2103 | } |
| 2104 | |
| 2105 | chartInstance->c1_id_SignalExportProp.logName = ""; |
| 2106 | chartInstance->c1_id_SignalExportProp.signalName = "pidCounter"; |
| 2107 | chartInstance->c1_id_SignalExportProp.useCustomName = 0; |
| 2108 | chartInstance->c1_id_SignalExportProp.limitDataPoints = 0; |
| 2109 | chartInstance->c1_id_SignalExportProp.decimate = 0; |
| 2110 | chartInstance->c1_id_SignalExportProp.maxPoints = 5000U; |
| 2111 | chartInstance->c1_id_SignalExportProp.decimation = 1U; |
| 2112 | if (chartInstance->c1_sdiLoggedDataBuffer[25U]) { |
| 2113 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2114 | "pidCounter", "", 1, c1_ee, 1, 7, 0, 0, |
| 2115 | &chartInstance->c1_id_SignalExportProp, "", 1839U); |
| 2116 | } |
| 2117 | |
| 2118 | chartInstance->c1_jd_SignalExportProp.logName = ""; |
| 2119 | chartInstance->c1_jd_SignalExportProp.signalName = "lastTryShift"; |
| 2120 | chartInstance->c1_jd_SignalExportProp.useCustomName = 0; |
| 2121 | chartInstance->c1_jd_SignalExportProp.limitDataPoints = 0; |
| 2122 | chartInstance->c1_jd_SignalExportProp.decimate = 0; |
| 2123 | chartInstance->c1_jd_SignalExportProp.maxPoints = 5000U; |
| 2124 | chartInstance->c1_jd_SignalExportProp.decimation = 1U; |
| 2125 | if (chartInstance->c1_sdiLoggedDataBuffer[29U]) { |
| 2126 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2127 | "lastTryShift", "", 2, c1_fe, 1, 5, 0, 0, |
| 2128 | &chartInstance->c1_jd_SignalExportProp, "", 2004U); |
| 2129 | } |
| 2130 | |
| 2131 | chartInstance->c1_kd_SignalExportProp.logName = ""; |
| 2132 | chartInstance->c1_kd_SignalExportProp.signalName = "rpmAccTarget"; |
| 2133 | chartInstance->c1_kd_SignalExportProp.useCustomName = 0; |
| 2134 | chartInstance->c1_kd_SignalExportProp.limitDataPoints = 0; |
| 2135 | chartInstance->c1_kd_SignalExportProp.decimate = 0; |
| 2136 | chartInstance->c1_kd_SignalExportProp.maxPoints = 5000U; |
| 2137 | chartInstance->c1_kd_SignalExportProp.decimation = 1U; |
| 2138 | if (chartInstance->c1_sdiLoggedDataBuffer[30U]) { |
| 2139 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2140 | "rpmAccTarget", "", 1, c1_ge, 1, 5, 0, 0, |
| 2141 | &chartInstance->c1_kd_SignalExportProp, "", 2851U); |
| 2142 | } |
| 2143 | |
| 2144 | chartInstance->c1_ld_SignalExportProp.logName = ""; |
| 2145 | chartInstance->c1_ld_SignalExportProp.signalName = "lastAacCom"; |
| 2146 | chartInstance->c1_ld_SignalExportProp.useCustomName = 0; |
| 2147 | chartInstance->c1_ld_SignalExportProp.limitDataPoints = 0; |
| 2148 | chartInstance->c1_ld_SignalExportProp.decimate = 0; |
| 2149 | chartInstance->c1_ld_SignalExportProp.maxPoints = 5000U; |
| 2150 | chartInstance->c1_ld_SignalExportProp.decimation = 1U; |
| 2151 | if (chartInstance->c1_sdiLoggedDataBuffer[31U]) { |
| 2152 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2153 | "lastAacCom", "MODES", 1, c1_he, 1, 5, 0, 0, |
| 2154 | &chartInstance->c1_ld_SignalExportProp, "", 627U); |
| 2155 | } |
| 2156 | |
| 2157 | chartInstance->c1_md_SignalExportProp.logName = ""; |
| 2158 | chartInstance->c1_md_SignalExportProp.signalName = "lastShiftCom"; |
| 2159 | chartInstance->c1_md_SignalExportProp.useCustomName = 0; |
| 2160 | chartInstance->c1_md_SignalExportProp.limitDataPoints = 0; |
| 2161 | chartInstance->c1_md_SignalExportProp.decimate = 0; |
| 2162 | chartInstance->c1_md_SignalExportProp.maxPoints = 5000U; |
| 2163 | chartInstance->c1_md_SignalExportProp.decimation = 1U; |
| 2164 | if (chartInstance->c1_sdiLoggedDataBuffer[32U]) { |
| 2165 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2166 | "lastShiftCom", "MODES", 1, c1_ie, 1, 5, 0, 0, |
| 2167 | &chartInstance->c1_md_SignalExportProp, "", 681U); |
| 2168 | } |
| 2169 | |
| 2170 | chartInstance->c1_nd_SignalExportProp.logName = ""; |
| 2171 | chartInstance->c1_nd_SignalExportProp.signalName = "lastAutoXCom"; |
| 2172 | chartInstance->c1_nd_SignalExportProp.useCustomName = 0; |
| 2173 | chartInstance->c1_nd_SignalExportProp.limitDataPoints = 0; |
| 2174 | chartInstance->c1_nd_SignalExportProp.decimate = 0; |
| 2175 | chartInstance->c1_nd_SignalExportProp.maxPoints = 5000U; |
| 2176 | chartInstance->c1_nd_SignalExportProp.decimation = 1U; |
| 2177 | if (chartInstance->c1_sdiLoggedDataBuffer[33U]) { |
| 2178 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2179 | "lastAutoXCom", "MODES", 1, c1_je, 1, 5, 0, 0, |
| 2180 | &chartInstance->c1_nd_SignalExportProp, "", 1043U); |
| 2181 | } |
| 2182 | |
| 2183 | chartInstance->c1_od_SignalExportProp.logName = ""; |
| 2184 | chartInstance->c1_od_SignalExportProp.signalName = "buzzerCounter"; |
| 2185 | chartInstance->c1_od_SignalExportProp.useCustomName = 0; |
| 2186 | chartInstance->c1_od_SignalExportProp.limitDataPoints = 0; |
| 2187 | chartInstance->c1_od_SignalExportProp.decimate = 0; |
| 2188 | chartInstance->c1_od_SignalExportProp.maxPoints = 5000U; |
| 2189 | chartInstance->c1_od_SignalExportProp.decimation = 1U; |
| 2190 | if (chartInstance->c1_sdiLoggedDataBuffer[34U]) { |
| 2191 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2192 | "buzzerCounter", "MODES", 1, c1_ke, 1, 5, 0, 0, |
| 2193 | &chartInstance->c1_od_SignalExportProp, "", 1063U); |
| 2194 | } |
| 2195 | |
| 2196 | chartInstance->c1_pd_SignalExportProp.logName = ""; |
| 2197 | chartInstance->c1_pd_SignalExportProp.signalName = "aacCounter"; |
| 2198 | chartInstance->c1_pd_SignalExportProp.useCustomName = 0; |
| 2199 | chartInstance->c1_pd_SignalExportProp.limitDataPoints = 0; |
| 2200 | chartInstance->c1_pd_SignalExportProp.decimate = 0; |
| 2201 | chartInstance->c1_pd_SignalExportProp.maxPoints = 5000U; |
| 2202 | chartInstance->c1_pd_SignalExportProp.decimation = 1U; |
| 2203 | if (chartInstance->c1_sdiLoggedDataBuffer[44U]) { |
| 2204 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2205 | "aacCounter", "MODES/ACCELERATION/ACC", 1, c1_le, 1, 5, 0, 0, |
| 2206 | &chartInstance->c1_pd_SignalExportProp, "", 550U); |
| 2207 | } |
| 2208 | |
| 2209 | chartInstance->c1_qd_SignalExportProp.logName = ""; |
| 2210 | chartInstance->c1_qd_SignalExportProp.signalName = "aac_clutchValue"; |
| 2211 | chartInstance->c1_qd_SignalExportProp.useCustomName = 0; |
| 2212 | chartInstance->c1_qd_SignalExportProp.limitDataPoints = 0; |
| 2213 | chartInstance->c1_qd_SignalExportProp.decimate = 0; |
| 2214 | chartInstance->c1_qd_SignalExportProp.maxPoints = 5000U; |
| 2215 | chartInstance->c1_qd_SignalExportProp.decimation = 1U; |
| 2216 | if (chartInstance->c1_sdiLoggedDataBuffer[45U]) { |
| 2217 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2218 | "aac_clutchValue", "MODES/ACCELERATION/ACC", 1, c1_me, 1, 0, 0, 0, |
| 2219 | &chartInstance->c1_qd_SignalExportProp, "", 561U); |
| 2220 | } |
| 2221 | |
| 2222 | chartInstance->c1_rd_SignalExportProp.logName = ""; |
| 2223 | chartInstance->c1_rd_SignalExportProp.signalName = "aac_clutchStep"; |
| 2224 | chartInstance->c1_rd_SignalExportProp.useCustomName = 0; |
| 2225 | chartInstance->c1_rd_SignalExportProp.limitDataPoints = 0; |
| 2226 | chartInstance->c1_rd_SignalExportProp.decimate = 0; |
| 2227 | chartInstance->c1_rd_SignalExportProp.maxPoints = 5000U; |
| 2228 | chartInstance->c1_rd_SignalExportProp.decimation = 1U; |
| 2229 | if (chartInstance->c1_sdiLoggedDataBuffer[46U]) { |
| 2230 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2231 | "aac_clutchStep", "MODES/ACCELERATION/ACC", 1, c1_ne, 1, 0, 0, 0, |
| 2232 | &chartInstance->c1_rd_SignalExportProp, "", 563U); |
| 2233 | } |
| 2234 | |
| 2235 | chartInstance->c1_sd_SignalExportProp.logName = ""; |
| 2236 | chartInstance->c1_sd_SignalExportProp.signalName = "aac_dtRelease"; |
| 2237 | chartInstance->c1_sd_SignalExportProp.useCustomName = 0; |
| 2238 | chartInstance->c1_sd_SignalExportProp.limitDataPoints = 0; |
| 2239 | chartInstance->c1_sd_SignalExportProp.decimate = 0; |
| 2240 | chartInstance->c1_sd_SignalExportProp.maxPoints = 5000U; |
| 2241 | chartInstance->c1_sd_SignalExportProp.decimation = 1U; |
| 2242 | if (chartInstance->c1_sdiLoggedDataBuffer[47U]) { |
| 2243 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2244 | "aac_dtRelease", "MODES/ACCELERATION/ACC", 1, c1_oe, 1, 6, 0, 0, |
| 2245 | &chartInstance->c1_sd_SignalExportProp, "", 564U); |
| 2246 | } |
| 2247 | |
| 2248 | chartInstance->c1_td_SignalExportProp.logName = ""; |
| 2249 | chartInstance->c1_td_SignalExportProp.signalName = "autoXCounter"; |
| 2250 | chartInstance->c1_td_SignalExportProp.useCustomName = 0; |
| 2251 | chartInstance->c1_td_SignalExportProp.limitDataPoints = 0; |
| 2252 | chartInstance->c1_td_SignalExportProp.decimate = 0; |
| 2253 | chartInstance->c1_td_SignalExportProp.maxPoints = 5000U; |
| 2254 | chartInstance->c1_td_SignalExportProp.decimation = 1U; |
| 2255 | if (chartInstance->c1_sdiLoggedDataBuffer[63U]) { |
| 2256 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2257 | "autoXCounter", "MODES/AUTOCROSS/LAUNCH", 1, c1_pe, 1, 5, 0, 0, |
| 2258 | &chartInstance->c1_td_SignalExportProp, "", 958U); |
| 2259 | } |
| 2260 | |
| 2261 | chartInstance->c1_ud_SignalExportProp.logName = ""; |
| 2262 | chartInstance->c1_ud_SignalExportProp.signalName = "autoX_clutchValue"; |
| 2263 | chartInstance->c1_ud_SignalExportProp.useCustomName = 0; |
| 2264 | chartInstance->c1_ud_SignalExportProp.limitDataPoints = 0; |
| 2265 | chartInstance->c1_ud_SignalExportProp.decimate = 0; |
| 2266 | chartInstance->c1_ud_SignalExportProp.maxPoints = 5000U; |
| 2267 | chartInstance->c1_ud_SignalExportProp.decimation = 1U; |
| 2268 | if (chartInstance->c1_sdiLoggedDataBuffer[64U]) { |
| 2269 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2270 | "autoX_clutchValue", "MODES/AUTOCROSS/LAUNCH", 1, c1_qe, 1, 0, 0, 0, |
| 2271 | &chartInstance->c1_ud_SignalExportProp, "", 959U); |
| 2272 | } |
| 2273 | |
| 2274 | chartInstance->c1_vd_SignalExportProp.logName = ""; |
| 2275 | chartInstance->c1_vd_SignalExportProp.signalName = "autoX_clutchStep"; |
| 2276 | chartInstance->c1_vd_SignalExportProp.useCustomName = 0; |
| 2277 | chartInstance->c1_vd_SignalExportProp.limitDataPoints = 0; |
| 2278 | chartInstance->c1_vd_SignalExportProp.decimate = 0; |
| 2279 | chartInstance->c1_vd_SignalExportProp.maxPoints = 5000U; |
| 2280 | chartInstance->c1_vd_SignalExportProp.decimation = 1U; |
| 2281 | if (chartInstance->c1_sdiLoggedDataBuffer[65U]) { |
| 2282 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2283 | "autoX_clutchStep", "MODES/AUTOCROSS/LAUNCH", 1, c1_re, 1, 0, 0, 0, |
| 2284 | &chartInstance->c1_vd_SignalExportProp, "", 960U); |
| 2285 | } |
| 2286 | |
| 2287 | chartInstance->c1_wd_SignalExportProp.logName = ""; |
| 2288 | chartInstance->c1_wd_SignalExportProp.signalName = "autoX_dtRelease"; |
| 2289 | chartInstance->c1_wd_SignalExportProp.useCustomName = 0; |
| 2290 | chartInstance->c1_wd_SignalExportProp.limitDataPoints = 0; |
| 2291 | chartInstance->c1_wd_SignalExportProp.decimate = 0; |
| 2292 | chartInstance->c1_wd_SignalExportProp.maxPoints = 5000U; |
| 2293 | chartInstance->c1_wd_SignalExportProp.decimation = 1U; |
| 2294 | if (chartInstance->c1_sdiLoggedDataBuffer[66U]) { |
| 2295 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2296 | "autoX_dtRelease", "MODES/AUTOCROSS/LAUNCH", 1, c1_se, 1, 6, 0, 0, |
| 2297 | &chartInstance->c1_wd_SignalExportProp, "", 961U); |
| 2298 | } |
| 2299 | |
| 2300 | chartInstance->c1_xd_SignalExportProp.logName = ""; |
| 2301 | chartInstance->c1_xd_SignalExportProp.signalName = "autoXCounter"; |
| 2302 | chartInstance->c1_xd_SignalExportProp.useCustomName = 0; |
| 2303 | chartInstance->c1_xd_SignalExportProp.limitDataPoints = 0; |
| 2304 | chartInstance->c1_xd_SignalExportProp.decimate = 0; |
| 2305 | chartInstance->c1_xd_SignalExportProp.maxPoints = 5000U; |
| 2306 | chartInstance->c1_xd_SignalExportProp.decimation = 1U; |
| 2307 | if (chartInstance->c1_sdiLoggedDataBuffer[70U]) { |
| 2308 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2309 | "autoXCounter", "MODES/ACCELERATION_PID/LAUNCH0", 1, c1_te, 1, 5, 0, 0, |
| 2310 | &chartInstance->c1_xd_SignalExportProp, "", 2170U); |
| 2311 | } |
| 2312 | |
| 2313 | chartInstance->c1_yd_SignalExportProp.logName = ""; |
| 2314 | chartInstance->c1_yd_SignalExportProp.signalName = "autoX_clutchValue"; |
| 2315 | chartInstance->c1_yd_SignalExportProp.useCustomName = 0; |
| 2316 | chartInstance->c1_yd_SignalExportProp.limitDataPoints = 0; |
| 2317 | chartInstance->c1_yd_SignalExportProp.decimate = 0; |
| 2318 | chartInstance->c1_yd_SignalExportProp.maxPoints = 5000U; |
| 2319 | chartInstance->c1_yd_SignalExportProp.decimation = 1U; |
| 2320 | if (chartInstance->c1_sdiLoggedDataBuffer[71U]) { |
| 2321 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2322 | "autoX_clutchValue", "MODES/ACCELERATION_PID/LAUNCH0", 1, c1_ue, 1, 0, 0, |
| 2323 | 0, &chartInstance->c1_yd_SignalExportProp, "", 2171U); |
| 2324 | } |
| 2325 | |
| 2326 | chartInstance->c1_ae_SignalExportProp.logName = ""; |
| 2327 | chartInstance->c1_ae_SignalExportProp.signalName = "autoX_clutchStep"; |
| 2328 | chartInstance->c1_ae_SignalExportProp.useCustomName = 0; |
| 2329 | chartInstance->c1_ae_SignalExportProp.limitDataPoints = 0; |
| 2330 | chartInstance->c1_ae_SignalExportProp.decimate = 0; |
| 2331 | chartInstance->c1_ae_SignalExportProp.maxPoints = 5000U; |
| 2332 | chartInstance->c1_ae_SignalExportProp.decimation = 1U; |
| 2333 | if (chartInstance->c1_sdiLoggedDataBuffer[72U]) { |
| 2334 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2335 | "autoX_clutchStep", "MODES/ACCELERATION_PID/LAUNCH0", 1, c1_ve, 1, 0, 0, 0, |
| 2336 | &chartInstance->c1_ae_SignalExportProp, "", 2172U); |
| 2337 | } |
| 2338 | |
| 2339 | chartInstance->c1_be_SignalExportProp.logName = ""; |
| 2340 | chartInstance->c1_be_SignalExportProp.signalName = "autoX_dtRelease"; |
| 2341 | chartInstance->c1_be_SignalExportProp.useCustomName = 0; |
| 2342 | chartInstance->c1_be_SignalExportProp.limitDataPoints = 0; |
| 2343 | chartInstance->c1_be_SignalExportProp.decimate = 0; |
| 2344 | chartInstance->c1_be_SignalExportProp.maxPoints = 5000U; |
| 2345 | chartInstance->c1_be_SignalExportProp.decimation = 1U; |
| 2346 | if (chartInstance->c1_sdiLoggedDataBuffer[73U]) { |
| 2347 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2348 | "autoX_dtRelease", "MODES/ACCELERATION_PID/LAUNCH0", 1, c1_we, 1, 6, 0, 0, |
| 2349 | &chartInstance->c1_be_SignalExportProp, "", 2173U); |
| 2350 | } |
| 2351 | |
| 2352 | chartInstance->c1_ce_SignalExportProp.logName = ""; |
| 2353 | chartInstance->c1_ce_SignalExportProp.signalName = "ticksCounter"; |
| 2354 | chartInstance->c1_ce_SignalExportProp.useCustomName = 0; |
| 2355 | chartInstance->c1_ce_SignalExportProp.limitDataPoints = 0; |
| 2356 | chartInstance->c1_ce_SignalExportProp.decimate = 0; |
| 2357 | chartInstance->c1_ce_SignalExportProp.maxPoints = 5000U; |
| 2358 | chartInstance->c1_ce_SignalExportProp.decimation = 1U; |
| 2359 | if (chartInstance->c1_sdiLoggedDataBuffer[77U]) { |
| 2360 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2361 | "ticksCounter", "GEARSHIFT", 1, c1_xe, 1, 6, 0, 0, |
| 2362 | &chartInstance->c1_ce_SignalExportProp, "", 45U); |
| 2363 | } |
| 2364 | |
| 2365 | chartInstance->c1_de_SignalExportProp.logName = ""; |
| 2366 | chartInstance->c1_de_SignalExportProp.signalName = "counterWait"; |
| 2367 | chartInstance->c1_de_SignalExportProp.useCustomName = 0; |
| 2368 | chartInstance->c1_de_SignalExportProp.limitDataPoints = 0; |
| 2369 | chartInstance->c1_de_SignalExportProp.decimate = 0; |
| 2370 | chartInstance->c1_de_SignalExportProp.maxPoints = 5000U; |
| 2371 | chartInstance->c1_de_SignalExportProp.decimation = 1U; |
| 2372 | if (chartInstance->c1_sdiLoggedDataBuffer[84U]) { |
| 2373 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2374 | "counterWait", "EEPROM_TRIGGER", 1, c1_ye, 1, 0, 0, 0, |
| 2375 | &chartInstance->c1_de_SignalExportProp, "", 950U); |
| 2376 | } |
| 2377 | |
| 2378 | chartInstance->c1_ee_SignalExportProp.logName = ""; |
| 2379 | chartInstance->c1_ee_SignalExportProp.signalName = "lastCom"; |
| 2380 | chartInstance->c1_ee_SignalExportProp.useCustomName = 0; |
| 2381 | chartInstance->c1_ee_SignalExportProp.limitDataPoints = 0; |
| 2382 | chartInstance->c1_ee_SignalExportProp.decimate = 0; |
| 2383 | chartInstance->c1_ee_SignalExportProp.maxPoints = 5000U; |
| 2384 | chartInstance->c1_ee_SignalExportProp.decimation = 1U; |
| 2385 | if (chartInstance->c1_sdiLoggedDataBuffer[85U]) { |
| 2386 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2387 | "lastCom", "START_ENGINE", 1, c1_af, 1, 3, 0, 0, |
| 2388 | &chartInstance->c1_ee_SignalExportProp, "", 484U); |
| 2389 | } |
| 2390 | |
| 2391 | chartInstance->c1_fe_SignalExportProp.logName = ""; |
| 2392 | chartInstance->c1_fe_SignalExportProp.signalName = "startCounter"; |
| 2393 | chartInstance->c1_fe_SignalExportProp.useCustomName = 0; |
| 2394 | chartInstance->c1_fe_SignalExportProp.limitDataPoints = 0; |
| 2395 | chartInstance->c1_fe_SignalExportProp.decimate = 0; |
| 2396 | chartInstance->c1_fe_SignalExportProp.maxPoints = 5000U; |
| 2397 | chartInstance->c1_fe_SignalExportProp.decimation = 1U; |
| 2398 | if (chartInstance->c1_sdiLoggedDataBuffer[86U]) { |
| 2399 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2400 | "startCounter", "START_ENGINE", 1, c1_bf, 1, 3, 0, 0, |
| 2401 | &chartInstance->c1_fe_SignalExportProp, "", 488U); |
| 2402 | } |
| 2403 | |
| 2404 | chartInstance->c1_ge_SignalExportProp.logName = ""; |
| 2405 | chartInstance->c1_ge_SignalExportProp.signalName = "timerCounter"; |
| 2406 | chartInstance->c1_ge_SignalExportProp.useCustomName = 0; |
| 2407 | chartInstance->c1_ge_SignalExportProp.limitDataPoints = 0; |
| 2408 | chartInstance->c1_ge_SignalExportProp.decimate = 0; |
| 2409 | chartInstance->c1_ge_SignalExportProp.maxPoints = 5000U; |
| 2410 | chartInstance->c1_ge_SignalExportProp.decimation = 1U; |
| 2411 | if (chartInstance->c1_sdiLoggedDataBuffer[87U]) { |
| 2412 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2413 | "timerCounter", "SCAN_ADC", 1, c1_cf, 1, 5, 0, 0, |
| 2414 | &chartInstance->c1_ge_SignalExportProp, "", 938U); |
| 2415 | } |
| 2416 | |
| 2417 | chartInstance->c1_he_SignalExportProp.logName = ""; |
| 2418 | chartInstance->c1_he_SignalExportProp.signalName = "counterWait"; |
| 2419 | chartInstance->c1_he_SignalExportProp.useCustomName = 0; |
| 2420 | chartInstance->c1_he_SignalExportProp.limitDataPoints = 0; |
| 2421 | chartInstance->c1_he_SignalExportProp.decimate = 0; |
| 2422 | chartInstance->c1_he_SignalExportProp.maxPoints = 5000U; |
| 2423 | chartInstance->c1_he_SignalExportProp.decimation = 1U; |
| 2424 | if (chartInstance->c1_sdiLoggedDataBuffer[88U]) { |
| 2425 | sdi_register_builtin_data_type_signal(&chartInstance->c1_sdiBlockInfo, |
| 2426 | "counterWait", "ANTISTALL_ENABLE", 1, c1_df, 1, 0, 0, 0, |
| 2427 | &chartInstance->c1_he_SignalExportProp, "", 1068U); |
| 2428 | } |
| 2429 | } |
| 2430 | |
| 2431 | static void c1_sdiTerminate(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 2432 | { |
| 2433 | sdi_database_terminate(&chartInstance->c1_sdiBlockInfo); |
| 2434 | } |
| 2435 | |
| 2436 | static void initialize_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 2437 | *chartInstance) |
| 2438 | { |
| 2439 | int32_T c1_i0; |
| 2440 | int32_T c1_i1; |
| 2441 | int32_T c1_i2; |
| 2442 | int32_T c1_i3; |
| 2443 | if (sf_is_first_init_cond(chartInstance->S)) { |
| 2444 | initSimStructsc1_GCU_Model_genCode(chartInstance); |
| 2445 | chart_debug_initialize_data_addresses(chartInstance->S); |
| 2446 | } |
| 2447 | |
| 2448 | chartInstance->c1_sfEvent = CALL_EVENT; |
| 2449 | _sfTime_ = sf_get_time(chartInstance->S); |
| 2450 | chartInstance->c1_doSetSimStateSideEffects = 0U; |
| 2451 | chartInstance->c1_setSimStateSideEffectsInfo = NULL; |
| 2452 | chartInstance->c1_is_active_ANTISTALL_ENABLE = 0U; |
| 2453 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 76, 1069U, (int32_T) |
| 2454 | (chartInstance->c1_is_active_ANTISTALL_ENABLE == 1)); |
| 2455 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_IN_NO_ACTIVE_CHILD; |
| 2456 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 76, 1069U, (void *) |
| 2457 | &chartInstance->c1_is_ANTISTALL_ENABLE); |
| 2458 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 2459 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 2460 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 2461 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 2462 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 76, 1069U, 0); |
| 2463 | chartInstance->c1_tp_ANTISTALL_ENABLE = 0U; |
| 2464 | chartInstance->c1_tp_DISABLE = 0U; |
| 2465 | chartInstance->c1_tp_ENABLE = 0U; |
| 2466 | chartInstance->c1_is_active_EEPROM_TRIGGER = 0U; |
| 2467 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 73, 940U, (int32_T) |
| 2468 | (chartInstance->c1_is_active_EEPROM_TRIGGER == 1)); |
| 2469 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_NO_ACTIVE_CHILD; |
| 2470 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 73, 940U, (void *) |
| 2471 | &chartInstance->c1_is_EEPROM_TRIGGER); |
| 2472 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 2473 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 2474 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 2475 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 2476 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 73, 940U, 0); |
| 2477 | chartInstance->c1_tp_EEPROM_TRIGGER = 0U; |
| 2478 | chartInstance->c1_tp_SEND = 0U; |
| 2479 | chartInstance->c1_tp_WAIT = 0U; |
| 2480 | chartInstance->c1_is_active_GEARSHIFT = 0U; |
| 2481 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 41, 1U, (int32_T) |
| 2482 | (chartInstance->c1_is_active_GEARSHIFT == 1)); |
| 2483 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 2484 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 2485 | &chartInstance->c1_is_GEARSHIFT); |
| 2486 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 2487 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 2488 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 2489 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 2490 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 2491 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 2492 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 2493 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 2494 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 2495 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 2496 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 2497 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 2498 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2499 | chartInstance->c1_tp_GEARSHIFT = 0U; |
| 2500 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 2501 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 2502 | &chartInstance->c1_is_DOWNSHIFTING); |
| 2503 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 2504 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 2505 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 2506 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 2507 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 2508 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 2509 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 2510 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 2511 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2512 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 0); |
| 2513 | chartInstance->c1_tp_DOWNSHIFTING = 0U; |
| 2514 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_NO_ACTIVE_CHILD; |
| 2515 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 43, 17U, (void *) |
| 2516 | &chartInstance->c1_is_DOWN_BRAKE); |
| 2517 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 2518 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 2519 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 2520 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 2521 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2522 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 0); |
| 2523 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 43, 17U, 0); |
| 2524 | chartInstance->c1_tp_DOWN_BRAKE = 0U; |
| 2525 | chartInstance->c1_b_tp_ChangeClutch = 0U; |
| 2526 | chartInstance->c1_e_tp_Default = 0U; |
| 2527 | chartInstance->c1_tp_DOWN_PUSH = 0U; |
| 2528 | chartInstance->c1_tp_DOWN_REBOUND = 0U; |
| 2529 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 2530 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 2531 | &chartInstance->c1_is_DOWN_START); |
| 2532 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 2533 | (chartInstance->c1_is_DOWN_START == 1)); |
| 2534 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 2535 | (chartInstance->c1_is_DOWN_START == 2)); |
| 2536 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 2537 | (chartInstance->c1_is_DOWN_START == 3)); |
| 2538 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2539 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 0); |
| 2540 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 48, 14U, 0); |
| 2541 | chartInstance->c1_tp_DOWN_START = 0U; |
| 2542 | chartInstance->c1_tp_ChangeClutch = 0U; |
| 2543 | chartInstance->c1_d_tp_Default = 0U; |
| 2544 | chartInstance->c1_c_tp_SettingNeutral = 0U; |
| 2545 | chartInstance->c1_tp_DOWN_END = 0U; |
| 2546 | chartInstance->c1_tp_IDLE = 0U; |
| 2547 | chartInstance->c1_b_tp_INIT = 0U; |
| 2548 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 2549 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 2550 | &chartInstance->c1_is_UPSHIFTING); |
| 2551 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 2552 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 2553 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 2554 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 2555 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 2556 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 2557 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 2558 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 2559 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2560 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 0); |
| 2561 | chartInstance->c1_tp_UPSHIFTING = 0U; |
| 2562 | chartInstance->c1_tp_UP_BRAKE = 0U; |
| 2563 | chartInstance->c1_is_UP_PUSH = c1_IN_NO_ACTIVE_CHILD; |
| 2564 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 57, 10U, (void *) |
| 2565 | &chartInstance->c1_is_UP_PUSH); |
| 2566 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 2567 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 2568 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 2569 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 2570 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2571 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 0); |
| 2572 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 57, 10U, 0); |
| 2573 | chartInstance->c1_tp_UP_PUSH = 0U; |
| 2574 | chartInstance->c1_tp_CutOff = 0U; |
| 2575 | chartInstance->c1_b_tp_Default = 0U; |
| 2576 | chartInstance->c1_is_UP_REBOUND = c1_IN_NO_ACTIVE_CHILD; |
| 2577 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 60, 11U, (void *) |
| 2578 | &chartInstance->c1_is_UP_REBOUND); |
| 2579 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 2580 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 2581 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 2582 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 2583 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2584 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 0); |
| 2585 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 60, 11U, 0); |
| 2586 | chartInstance->c1_tp_UP_REBOUND = 0U; |
| 2587 | chartInstance->c1_tp_Default = 0U; |
| 2588 | chartInstance->c1_tp_SettingNeutral = 0U; |
| 2589 | chartInstance->c1_is_UP_START = c1_IN_NO_ACTIVE_CHILD; |
| 2590 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 63, 9U, (void *) |
| 2591 | &chartInstance->c1_is_UP_START); |
| 2592 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 2593 | (chartInstance->c1_is_UP_START == 1)); |
| 2594 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 2595 | (chartInstance->c1_is_UP_START == 2)); |
| 2596 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 0); |
| 2597 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 0); |
| 2598 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 63, 9U, 0); |
| 2599 | chartInstance->c1_tp_UP_START = 0U; |
| 2600 | chartInstance->c1_c_tp_Default = 0U; |
| 2601 | chartInstance->c1_b_tp_SettingNeutral = 0U; |
| 2602 | chartInstance->c1_tp_UP_END = 0U; |
| 2603 | chartInstance->c1_is_active_MODES = 0U; |
| 2604 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 1, 418U, (int32_T) |
| 2605 | (chartInstance->c1_is_active_MODES == 1)); |
| 2606 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 2607 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 2608 | &chartInstance->c1_is_MODES); |
| 2609 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 2610 | (chartInstance->c1_is_MODES == 1)); |
| 2611 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 2612 | (chartInstance->c1_is_MODES == 2)); |
| 2613 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 2614 | (chartInstance->c1_is_MODES == 3)); |
| 2615 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 2616 | (chartInstance->c1_is_MODES == 4)); |
| 2617 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 2618 | (chartInstance->c1_is_MODES == 5)); |
| 2619 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2620 | chartInstance->c1_tp_MODES = 0U; |
| 2621 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 2622 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 2623 | &chartInstance->c1_is_ACCELERATION); |
| 2624 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 2625 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 2626 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 2627 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 2628 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2629 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 2630 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 2631 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 2632 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 2633 | &chartInstance->c1_is_ACC); |
| 2634 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 2635 | (chartInstance->c1_is_ACC == 1)); |
| 2636 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 2637 | (chartInstance->c1_is_ACC == 2)); |
| 2638 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2639 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 2640 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 0); |
| 2641 | chartInstance->c1_tp_ACC = 0U; |
| 2642 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 2643 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 2644 | &chartInstance->c1_is_ACTIVE); |
| 2645 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 2646 | (chartInstance->c1_is_ACTIVE == 1)); |
| 2647 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 2648 | (chartInstance->c1_is_ACTIVE == 2)); |
| 2649 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 2650 | (chartInstance->c1_is_ACTIVE == 3)); |
| 2651 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 2652 | (chartInstance->c1_is_ACTIVE == 4)); |
| 2653 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 2654 | (chartInstance->c1_is_ACTIVE == 5)); |
| 2655 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2656 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 2657 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 0); |
| 2658 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 0); |
| 2659 | chartInstance->c1_tp_ACTIVE = 0U; |
| 2660 | chartInstance->c1_tp_READY = 0U; |
| 2661 | chartInstance->c1_tp_RELEASING = 0U; |
| 2662 | chartInstance->c1_tp_RUNNING = 0U; |
| 2663 | chartInstance->c1_tp_START = 0U; |
| 2664 | chartInstance->c1_tp_START_RELEASE = 0U; |
| 2665 | chartInstance->c1_tp_STOPPING = 0U; |
| 2666 | chartInstance->c1_tp_DEFAULT = 0U; |
| 2667 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 2668 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 2669 | &chartInstance->c1_is_ACCELERATION_PID); |
| 2670 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 2671 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 2672 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 2673 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 2674 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2675 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 2676 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 2677 | chartInstance->c1_c_tp_DEFAULT = 0U; |
| 2678 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 2679 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 2680 | &chartInstance->c1_is_LAUNCH0); |
| 2681 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 2682 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 2683 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 2684 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 2685 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2686 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 2687 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 0); |
| 2688 | chartInstance->c1_tp_LAUNCH0 = 0U; |
| 2689 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 2690 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 2691 | &chartInstance->c1_c_is_ACTIVE); |
| 2692 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 2693 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 2694 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 2695 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 2696 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 2697 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 2698 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 2699 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 2700 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 2701 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 2702 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2703 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 2704 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 0); |
| 2705 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 0); |
| 2706 | chartInstance->c1_c_tp_ACTIVE = 0U; |
| 2707 | chartInstance->c1_c_tp_READY = 0U; |
| 2708 | chartInstance->c1_tp_RELEASE = 0U; |
| 2709 | chartInstance->c1_tp_RPM_LIMITER = 0U; |
| 2710 | chartInstance->c1_c_tp_RUNNING = 0U; |
| 2711 | chartInstance->c1_c_tp_START = 0U; |
| 2712 | chartInstance->c1_c_tp_STOPPING = 0U; |
| 2713 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 2714 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 2715 | &chartInstance->c1_is_AUTOCROSS); |
| 2716 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 2717 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 2718 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 2719 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 2720 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2721 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 2722 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 2723 | chartInstance->c1_b_tp_DEFAULT = 0U; |
| 2724 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 2725 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 2726 | &chartInstance->c1_is_LAUNCH); |
| 2727 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 2728 | (chartInstance->c1_is_LAUNCH == 1)); |
| 2729 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 2730 | (chartInstance->c1_is_LAUNCH == 2)); |
| 2731 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2732 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 2733 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 0); |
| 2734 | chartInstance->c1_tp_LAUNCH = 0U; |
| 2735 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 2736 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 2737 | &chartInstance->c1_b_is_ACTIVE); |
| 2738 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 2739 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 2740 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 2741 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 2742 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 2743 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 2744 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 2745 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 2746 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 2747 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 2748 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2749 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 2750 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 0); |
| 2751 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 0); |
| 2752 | chartInstance->c1_b_tp_ACTIVE = 0U; |
| 2753 | chartInstance->c1_b_tp_READY = 0U; |
| 2754 | chartInstance->c1_b_tp_RELEASING = 0U; |
| 2755 | chartInstance->c1_b_tp_RUNNING = 0U; |
| 2756 | chartInstance->c1_b_tp_START = 0U; |
| 2757 | chartInstance->c1_b_tp_START_RELEASE = 0U; |
| 2758 | chartInstance->c1_b_tp_STOPPING = 0U; |
| 2759 | chartInstance->c1_tp_INIT = 0U; |
| 2760 | chartInstance->c1_is_MANUAL_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 2761 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 2762 | &chartInstance->c1_is_MANUAL_MODES); |
| 2763 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 2764 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 2765 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 2766 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 2767 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 0); |
| 2768 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 2769 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 2770 | chartInstance->c1_tp_ENDURANCE = 0U; |
| 2771 | chartInstance->c1_tp_SKIDPAD = 0U; |
| 2772 | chartInstance->c1_is_active_NEUTRAL_STATE = 0U; |
| 2773 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 36, 31U, (int32_T) |
| 2774 | (chartInstance->c1_is_active_NEUTRAL_STATE == 1)); |
| 2775 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 2776 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 2777 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 2778 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 2779 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 2780 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 2781 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 2782 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 2783 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 2784 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 2785 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 2786 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 0); |
| 2787 | chartInstance->c1_tp_NEUTRAL_STATE = 0U; |
| 2788 | chartInstance->c1_tp_NEUTRAL = 0U; |
| 2789 | chartInstance->c1_tp_NO_NEUTRAL = 0U; |
| 2790 | chartInstance->c1_tp_SET_NEUTRAL = 0U; |
| 2791 | chartInstance->c1_tp_UNSET_NEUTRAL = 0U; |
| 2792 | chartInstance->c1_is_active_SCAN_ADC = 0U; |
| 2793 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 71, 929U, (int32_T) |
| 2794 | (chartInstance->c1_is_active_SCAN_ADC == 1)); |
| 2795 | chartInstance->c1_is_SCAN_ADC = c1_IN_NO_ACTIVE_CHILD; |
| 2796 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 71, 929U, (void *) |
| 2797 | &chartInstance->c1_is_SCAN_ADC); |
| 2798 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 72, 932U, (int32_T) |
| 2799 | (chartInstance->c1_is_SCAN_ADC == 1)); |
| 2800 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 71, 929U, 0); |
| 2801 | chartInstance->c1_tp_SCAN_ADC = 0U; |
| 2802 | chartInstance->c1_tp_SCAN = 0U; |
| 2803 | chartInstance->c1_is_active_START_ENGINE = 0U; |
| 2804 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 67, 479U, (int32_T) |
| 2805 | (chartInstance->c1_is_active_START_ENGINE == 1)); |
| 2806 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 2807 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 2808 | &chartInstance->c1_is_START_ENGINE); |
| 2809 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 2810 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 2811 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 2812 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 2813 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 2814 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 2815 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 0); |
| 2816 | chartInstance->c1_tp_START_ENGINE = 0U; |
| 2817 | chartInstance->c1_d_tp_START = 0U; |
| 2818 | chartInstance->c1_tp_STOP = 0U; |
| 2819 | chartInstance->c1_b_tp_WAIT = 0U; |
| 2820 | chartInstance->c1_is_active_c1_GCU_Model_genCode = 0U; |
| 2821 | chartInstance->c1_lastShift = 0U; |
| 2822 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 2823 | &chartInstance->c1_lastShift); |
| 2824 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 2825 | chartInstance->c1_lastTryShift[0] = 0U; |
| 2826 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 2827 | &chartInstance->c1_lastTryShift); |
| 2828 | for (c1_i0 = 0; c1_i0 < 2; c1_i0++) { |
| 2829 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i0], 23U); |
| 2830 | } |
| 2831 | |
| 2832 | chartInstance->c1_lastTryShift[1] = 0U; |
| 2833 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 2834 | &chartInstance->c1_lastTryShift); |
| 2835 | for (c1_i1 = 0; c1_i1 < 2; c1_i1++) { |
| 2836 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i1], 23U); |
| 2837 | } |
| 2838 | |
| 2839 | chartInstance->c1_lastAacCom = 0U; |
| 2840 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 2841 | chartInstance->c1_lastShiftCom = 0U; |
| 2842 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShiftCom, 3U); |
| 2843 | chartInstance->c1_lastAutoXCom = 0U; |
| 2844 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 2845 | chartInstance->c1_buzzerCounter = 0U; |
| 2846 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_buzzerCounter, 0U); |
| 2847 | chartInstance->c1_aacCounter = 0U; |
| 2848 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 2849 | chartInstance->c1_aac_clutchValue = 0.0; |
| 2850 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchValue, 6U); |
| 2851 | chartInstance->c1_aac_clutchStep = 0.0; |
| 2852 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchStep, 5U); |
| 2853 | chartInstance->c1_aac_dtRelease = 0; |
| 2854 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aac_dtRelease, 7U); |
| 2855 | chartInstance->c1_autoXCounter = 0U; |
| 2856 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 2857 | chartInstance->c1_autoX_clutchValue = 0.0; |
| 2858 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchValue, 10U); |
| 2859 | chartInstance->c1_autoX_clutchStep = 0.0; |
| 2860 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchStep, 9U); |
| 2861 | chartInstance->c1_autoX_dtRelease = 0; |
| 2862 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoX_dtRelease, 11U); |
| 2863 | chartInstance->c1_b_autoXCounter = 0U; |
| 2864 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 2865 | chartInstance->c1_b_autoX_clutchValue = 0.0; |
| 2866 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_autoX_clutchValue, 14U); |
| 2867 | chartInstance->c1_b_autoX_clutchStep = 0.0; |
| 2868 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_autoX_clutchStep, 13U); |
| 2869 | chartInstance->c1_b_autoX_dtRelease = 0; |
| 2870 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoX_dtRelease, 15U); |
| 2871 | chartInstance->c1_ticksCounter = 0; |
| 2872 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 2873 | chartInstance->c1_counterWait = 0.0; |
| 2874 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_counterWait, 17U); |
| 2875 | chartInstance->c1_lastCom = 0U; |
| 2876 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastCom, 18U); |
| 2877 | chartInstance->c1_startCounter = 0U; |
| 2878 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 2879 | chartInstance->c1_timerCounter = 0U; |
| 2880 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_timerCounter, 20U); |
| 2881 | chartInstance->c1_b_counterWait = 0.0; |
| 2882 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_counterWait, 21U); |
| 2883 | chartInstance->c1_GEAR_COMMAND_NEUTRAL_UP = 50U; |
| 2884 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_GEAR_COMMAND_NEUTRAL_UP, 55U); |
| 2885 | chartInstance->c1_GEAR_COMMAND_NEUTRAL_DOWN = 100U; |
| 2886 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_GEAR_COMMAND_NEUTRAL_DOWN, 54U); |
| 2887 | chartInstance->c1_GEAR_COMMAND_UP = 400U; |
| 2888 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_GEAR_COMMAND_UP, 56U); |
| 2889 | chartInstance->c1_GEAR_COMMAND_DOWN = 200U; |
| 2890 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_GEAR_COMMAND_DOWN, 53U); |
| 2891 | chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_UP = 50U; |
| 2892 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_UP, 59U); |
| 2893 | chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_DOWN = 100U; |
| 2894 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_DOWN, |
| 2895 | 58U); |
| 2896 | chartInstance->c1_b_GEAR_COMMAND_UP = 400U; |
| 2897 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_GEAR_COMMAND_UP, 60U); |
| 2898 | chartInstance->c1_b_GEAR_COMMAND_DOWN = 200U; |
| 2899 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_GEAR_COMMAND_DOWN, 57U); |
| 2900 | chartInstance->c1_AAC_WORK_RATE_ms = 25U; |
| 2901 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_AAC_WORK_RATE_ms, 61U); |
| 2902 | chartInstance->c1_DEF_RAMP_START = 50; |
| 2903 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RAMP_START, 64U); |
| 2904 | chartInstance->c1_DEF_RAMP_END = 0; |
| 2905 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RAMP_END, 63U); |
| 2906 | chartInstance->c1_DEF_RAMP_TIME = 250; |
| 2907 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RAMP_TIME, 65U); |
| 2908 | chartInstance->c1_DEF_RPM_LIMIT_1_2 = 11000; |
| 2909 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RPM_LIMIT_1_2, 66U); |
| 2910 | chartInstance->c1_DEF_RPM_LIMIT_2_3 = 11000; |
| 2911 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RPM_LIMIT_2_3, 67U); |
| 2912 | chartInstance->c1_DEF_RPM_LIMIT_3_4 = 11000; |
| 2913 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RPM_LIMIT_3_4, 68U); |
| 2914 | chartInstance->c1_DEF_RPM_LIMIT_4_5 = 11000; |
| 2915 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_RPM_LIMIT_4_5, 69U); |
| 2916 | chartInstance->c1_DEF_SPEED_LIMIT_1_2 = 46; |
| 2917 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_SPEED_LIMIT_1_2, 70U); |
| 2918 | chartInstance->c1_DEF_SPEED_LIMIT_2_3 = 61; |
| 2919 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_SPEED_LIMIT_2_3, 71U); |
| 2920 | chartInstance->c1_DEF_SPEED_LIMIT_3_4 = 77; |
| 2921 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_SPEED_LIMIT_3_4, 72U); |
| 2922 | chartInstance->c1_DEF_SPEED_LIMIT_4_5 = 113; |
| 2923 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_DEF_SPEED_LIMIT_4_5, 73U); |
| 2924 | chartInstance->c1_ACC_CODE = 1U; |
| 2925 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ACC_CODE, 62U); |
| 2926 | chartInstance->c1_AUTOX_WORK_RATE_ms = 25U; |
| 2927 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_AUTOX_WORK_RATE_ms, 74U); |
| 2928 | chartInstance->c1_b_AUTOX_WORK_RATE_ms = 25U; |
| 2929 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_AUTOX_WORK_RATE_ms, 75U); |
| 2930 | chartInstance->c1_data = 0.0; |
| 2931 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_data, 76U); |
| 2932 | if (!(sf_get_output_port_reusable(chartInstance->S, 1) != 0)) { |
| 2933 | *chartInstance->c1_clutchCurrVal = 0U; |
| 2934 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 0, 123U, (void *) |
| 2935 | chartInstance->c1_clutchCurrVal); |
| 2936 | _SFD_DATA_RANGE_CHECK_MIN_MAX((real_T)*chartInstance->c1_clutchCurrVal, 47U, |
| 2937 | 0.0, 100.0, 0U, 0, 0); |
| 2938 | } |
| 2939 | |
| 2940 | if (!(sf_get_output_port_reusable(chartInstance->S, 2) != 0)) { |
| 2941 | for (c1_i2 = 0; c1_i2 < 2; c1_i2++) { |
| 2942 | (*chartInstance->c1_lastModeCom)[c1_i2] = 0U; |
| 2943 | } |
| 2944 | |
| 2945 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 2946 | chartInstance->c1_lastModeCom); |
| 2947 | for (c1_i3 = 0; c1_i3 < 2; c1_i3++) { |
| 2948 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i3], 48U); |
| 2949 | } |
| 2950 | } |
| 2951 | |
| 2952 | if (!(sf_get_output_port_reusable(chartInstance->S, 3) != 0)) { |
| 2953 | *chartInstance->c1_stateFb = 0U; |
| 2954 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 2955 | chartInstance->c1_stateFb); |
| 2956 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 2957 | } |
| 2958 | |
| 2959 | if (!(sf_get_output_port_reusable(chartInstance->S, 4) != 0)) { |
| 2960 | *chartInstance->c1_antiStallEnable = 0U; |
| 2961 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 14, 1073U, (void *) |
| 2962 | chartInstance->c1_antiStallEnable); |
| 2963 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_antiStallEnable, 50U); |
| 2964 | } |
| 2965 | |
| 2966 | if (!(sf_get_output_port_reusable(chartInstance->S, 5) != 0)) { |
| 2967 | *chartInstance->c1_pidCounter = 0U; |
| 2968 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 25, 1839U, (void *) |
| 2969 | chartInstance->c1_pidCounter); |
| 2970 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_pidCounter, 51U); |
| 2971 | } |
| 2972 | |
| 2973 | if (!(sf_get_output_port_reusable(chartInstance->S, 6) != 0)) { |
| 2974 | *chartInstance->c1_rpmAccTarget = 0U; |
| 2975 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 30, 2851U, (void *) |
| 2976 | chartInstance->c1_rpmAccTarget); |
| 2977 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_rpmAccTarget, 52U); |
| 2978 | } |
| 2979 | } |
| 2980 | |
| 2981 | static void initialize_params_c1_GCU_Model_genCode |
| 2982 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 2983 | { |
| 2984 | (void)chartInstance; |
| 2985 | } |
| 2986 | |
| 2987 | static void enable_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 2988 | *chartInstance) |
| 2989 | { |
| 2990 | _sfTime_ = sf_get_time(chartInstance->S); |
| 2991 | sf_call_output_fcn_enable(chartInstance->S, 0, "Clutch_set", 0); |
| 2992 | sf_call_output_fcn_enable(chartInstance->S, 1, "Efi_init", 0); |
| 2993 | sf_call_output_fcn_enable(chartInstance->S, 2, "Efi_setCut", 0); |
| 2994 | sf_call_output_fcn_enable(chartInstance->S, 3, "Efi_unsetCut", 0); |
| 2995 | sf_call_output_fcn_enable(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 2996 | sf_call_output_fcn_enable(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 2997 | sf_call_output_fcn_enable(chartInstance->S, 6, "Gearshift_rebound", 0); |
| 2998 | sf_call_output_fcn_enable(chartInstance->S, 7, "Gearshift_up_push", 0); |
| 2999 | sf_call_output_fcn_enable(chartInstance->S, 8, "Gearshift_down_push", 0); |
| 3000 | sf_call_output_fcn_enable(chartInstance->S, 9, "Gearshift_brake", 0); |
| 3001 | sf_call_output_fcn_enable(chartInstance->S, 10, "Gearshift_free", 0); |
| 3002 | sf_call_output_fcn_enable(chartInstance->S, 11, "EngineControl_start", 0); |
| 3003 | sf_call_output_fcn_enable(chartInstance->S, 12, "EngineControl_stop", 0); |
| 3004 | sf_call_output_fcn_enable(chartInstance->S, 13, "eepromTrigger", 0); |
| 3005 | sf_call_output_fcn_enable(chartInstance->S, 14, "BuzzerOn", 0); |
| 3006 | sf_call_output_fcn_enable(chartInstance->S, 15, "BuzzerOff", 0); |
| 3007 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_ACTIVE) { |
| 3008 | sf_call_output_fcn_enable(chartInstance->S, 16, "ramp", 0); |
| 3009 | } |
| 3010 | |
| 3011 | if (chartInstance->c1_is_active_GEARSHIFT == 1U) { |
| 3012 | sf_call_output_fcn_enable(chartInstance->S, 26, "checkCurrent", 0); |
| 3013 | } |
| 3014 | |
| 3015 | if (chartInstance->c1_is_active_SCAN_ADC == 1U) { |
| 3016 | sf_call_output_fcn_enable(chartInstance->S, 27, "ScanADC", 0); |
| 3017 | } |
| 3018 | } |
| 3019 | |
| 3020 | static void disable_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 3021 | *chartInstance) |
| 3022 | { |
| 3023 | _sfTime_ = sf_get_time(chartInstance->S); |
| 3024 | sf_call_output_fcn_disable(chartInstance->S, 0, "Clutch_set", 0); |
| 3025 | sf_call_output_fcn_disable(chartInstance->S, 1, "Efi_init", 0); |
| 3026 | sf_call_output_fcn_disable(chartInstance->S, 2, "Efi_setCut", 0); |
| 3027 | sf_call_output_fcn_disable(chartInstance->S, 3, "Efi_unsetCut", 0); |
| 3028 | sf_call_output_fcn_disable(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 3029 | sf_call_output_fcn_disable(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 3030 | sf_call_output_fcn_disable(chartInstance->S, 6, "Gearshift_rebound", 0); |
| 3031 | sf_call_output_fcn_disable(chartInstance->S, 7, "Gearshift_up_push", 0); |
| 3032 | sf_call_output_fcn_disable(chartInstance->S, 8, "Gearshift_down_push", 0); |
| 3033 | sf_call_output_fcn_disable(chartInstance->S, 9, "Gearshift_brake", 0); |
| 3034 | sf_call_output_fcn_disable(chartInstance->S, 10, "Gearshift_free", 0); |
| 3035 | sf_call_output_fcn_disable(chartInstance->S, 11, "EngineControl_start", 0); |
| 3036 | sf_call_output_fcn_disable(chartInstance->S, 12, "EngineControl_stop", 0); |
| 3037 | sf_call_output_fcn_disable(chartInstance->S, 13, "eepromTrigger", 0); |
| 3038 | sf_call_output_fcn_disable(chartInstance->S, 14, "BuzzerOn", 0); |
| 3039 | sf_call_output_fcn_disable(chartInstance->S, 15, "BuzzerOff", 0); |
| 3040 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_ACTIVE) { |
| 3041 | sf_call_output_fcn_disable(chartInstance->S, 16, "ramp", 0); |
| 3042 | } |
| 3043 | |
| 3044 | if (chartInstance->c1_is_active_GEARSHIFT == 1U) { |
| 3045 | sf_call_output_fcn_disable(chartInstance->S, 26, "checkCurrent", 0); |
| 3046 | } |
| 3047 | |
| 3048 | if (chartInstance->c1_is_active_SCAN_ADC == 1U) { |
| 3049 | sf_call_output_fcn_disable(chartInstance->S, 27, "ScanADC", 0); |
| 3050 | } |
| 3051 | } |
| 3052 | |
| 3053 | static void c1_update_debugger_state_c1_GCU_Model_genCode |
| 3054 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 3055 | { |
| 3056 | uint32_T c1_prevAniVal; |
| 3057 | c1_prevAniVal = _SFD_GET_ANIMATION(); |
| 3058 | _SFD_SET_ANIMATION(0U); |
| 3059 | _SFD_SET_HONOR_BREAKPOINTS(0U); |
| 3060 | if (chartInstance->c1_is_active_c1_GCU_Model_genCode == 1U) { |
| 3061 | _SFD_CC_CALL(CHART_ACTIVE_TAG, 0U, chartInstance->c1_sfEvent); |
| 3062 | } |
| 3063 | |
| 3064 | if (chartInstance->c1_is_active_MODES == 1U) { |
| 3065 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 35U, chartInstance->c1_sfEvent); |
| 3066 | } else { |
| 3067 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 35U, chartInstance->c1_sfEvent); |
| 3068 | } |
| 3069 | |
| 3070 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 3071 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 3072 | } else { |
| 3073 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 3074 | } |
| 3075 | |
| 3076 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_ENDURANCE) { |
| 3077 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 3078 | } else { |
| 3079 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 3080 | } |
| 3081 | |
| 3082 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 3083 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 3084 | } else { |
| 3085 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 3086 | } |
| 3087 | |
| 3088 | if (chartInstance->c1_is_MODES == c1_IN_INIT) { |
| 3089 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 3090 | } else { |
| 3091 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 3092 | } |
| 3093 | |
| 3094 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 3095 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 3096 | } else { |
| 3097 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 3098 | } |
| 3099 | |
| 3100 | if (chartInstance->c1_is_ACCELERATION == c1_IN_ACC) { |
| 3101 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 3102 | } else { |
| 3103 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 3104 | } |
| 3105 | |
| 3106 | if (chartInstance->c1_is_ACC == c1_IN_ACTIVE) { |
| 3107 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 3108 | } else { |
| 3109 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 3110 | } |
| 3111 | |
| 3112 | if (chartInstance->c1_is_ACTIVE == c1_IN_START) { |
| 3113 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 3114 | } else { |
| 3115 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 3116 | } |
| 3117 | |
| 3118 | if (chartInstance->c1_is_ACTIVE == c1_IN_READY) { |
| 3119 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 3120 | } else { |
| 3121 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 3122 | } |
| 3123 | |
| 3124 | if (chartInstance->c1_is_ACTIVE == c1_IN_START_RELEASE) { |
| 3125 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 3126 | } else { |
| 3127 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 3128 | } |
| 3129 | |
| 3130 | if (chartInstance->c1_is_ACTIVE == c1_IN_RUNNING) { |
| 3131 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 3132 | } else { |
| 3133 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 3134 | } |
| 3135 | |
| 3136 | if (chartInstance->c1_is_ACTIVE == c1_IN_RELEASING) { |
| 3137 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 3138 | } else { |
| 3139 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 3140 | } |
| 3141 | |
| 3142 | if (chartInstance->c1_is_ACC == c1_IN_STOPPING) { |
| 3143 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 3144 | } else { |
| 3145 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 3146 | } |
| 3147 | |
| 3148 | if (chartInstance->c1_is_ACCELERATION == c1_IN_DEFAULT) { |
| 3149 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 3150 | } else { |
| 3151 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 3152 | } |
| 3153 | |
| 3154 | if (chartInstance->c1_is_MODES == c1_IN_AUTOCROSS) { |
| 3155 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 3156 | } else { |
| 3157 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 3158 | } |
| 3159 | |
| 3160 | if (chartInstance->c1_is_AUTOCROSS == c1_IN_LAUNCH) { |
| 3161 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 3162 | } else { |
| 3163 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 3164 | } |
| 3165 | |
| 3166 | if (chartInstance->c1_is_LAUNCH == c1_IN_ACTIVE) { |
| 3167 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 3168 | } else { |
| 3169 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 3170 | } |
| 3171 | |
| 3172 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START) { |
| 3173 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 3174 | } else { |
| 3175 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 3176 | } |
| 3177 | |
| 3178 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_READY) { |
| 3179 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 3180 | } else { |
| 3181 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 3182 | } |
| 3183 | |
| 3184 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START_RELEASE) { |
| 3185 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 3186 | } else { |
| 3187 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 3188 | } |
| 3189 | |
| 3190 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RUNNING) { |
| 3191 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 3192 | } else { |
| 3193 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 3194 | } |
| 3195 | |
| 3196 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RELEASING) { |
| 3197 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 3198 | } else { |
| 3199 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 3200 | } |
| 3201 | |
| 3202 | if (chartInstance->c1_is_LAUNCH == c1_IN_STOPPING) { |
| 3203 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 3204 | } else { |
| 3205 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 3206 | } |
| 3207 | |
| 3208 | if (chartInstance->c1_is_AUTOCROSS == c1_b_IN_DEFAULT) { |
| 3209 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 3210 | } else { |
| 3211 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 3212 | } |
| 3213 | |
| 3214 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 3215 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 3216 | } else { |
| 3217 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 3218 | } |
| 3219 | |
| 3220 | if (chartInstance->c1_is_ACCELERATION_PID == c1_IN_LAUNCH0) { |
| 3221 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 3222 | } else { |
| 3223 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 3224 | } |
| 3225 | |
| 3226 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_ACTIVE) { |
| 3227 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 3228 | } else { |
| 3229 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 3230 | } |
| 3231 | |
| 3232 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_START) { |
| 3233 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 3234 | } else { |
| 3235 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 3236 | } |
| 3237 | |
| 3238 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_READY) { |
| 3239 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 3240 | } else { |
| 3241 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 3242 | } |
| 3243 | |
| 3244 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_RUNNING) { |
| 3245 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 3246 | } else { |
| 3247 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 3248 | } |
| 3249 | |
| 3250 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RELEASE) { |
| 3251 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 53U, chartInstance->c1_sfEvent); |
| 3252 | } else { |
| 3253 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 53U, chartInstance->c1_sfEvent); |
| 3254 | } |
| 3255 | |
| 3256 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_STOPPING) { |
| 3257 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 3258 | } else { |
| 3259 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 3260 | } |
| 3261 | |
| 3262 | if (chartInstance->c1_is_ACCELERATION_PID == c1_b_IN_DEFAULT) { |
| 3263 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 3264 | } else { |
| 3265 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 3266 | } |
| 3267 | |
| 3268 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 1U) { |
| 3269 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 79U, chartInstance->c1_sfEvent); |
| 3270 | } else { |
| 3271 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 79U, chartInstance->c1_sfEvent); |
| 3272 | } |
| 3273 | |
| 3274 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_NEUTRAL) { |
| 3275 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 3276 | } else { |
| 3277 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 3278 | } |
| 3279 | |
| 3280 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_UNSET_NEUTRAL) { |
| 3281 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 83U, chartInstance->c1_sfEvent); |
| 3282 | } else { |
| 3283 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 83U, chartInstance->c1_sfEvent); |
| 3284 | } |
| 3285 | |
| 3286 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) { |
| 3287 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 82U, chartInstance->c1_sfEvent); |
| 3288 | } else { |
| 3289 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 82U, chartInstance->c1_sfEvent); |
| 3290 | } |
| 3291 | |
| 3292 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_NO_NEUTRAL) { |
| 3293 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 3294 | } else { |
| 3295 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 3296 | } |
| 3297 | |
| 3298 | if (chartInstance->c1_is_active_GEARSHIFT == 1U) { |
| 3299 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 7U, chartInstance->c1_sfEvent); |
| 3300 | } else { |
| 3301 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 7U, chartInstance->c1_sfEvent); |
| 3302 | } |
| 3303 | |
| 3304 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_UPSHIFTING) { |
| 3305 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 22U, chartInstance->c1_sfEvent); |
| 3306 | } else { |
| 3307 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 22U, chartInstance->c1_sfEvent); |
| 3308 | } |
| 3309 | |
| 3310 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_REBOUND) { |
| 3311 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 27U, chartInstance->c1_sfEvent); |
| 3312 | } else { |
| 3313 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 27U, chartInstance->c1_sfEvent); |
| 3314 | } |
| 3315 | |
| 3316 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_Default) { |
| 3317 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 3318 | } else { |
| 3319 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 3320 | } |
| 3321 | |
| 3322 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_SettingNeutral) { |
| 3323 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 29U, chartInstance->c1_sfEvent); |
| 3324 | } else { |
| 3325 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 29U, chartInstance->c1_sfEvent); |
| 3326 | } |
| 3327 | |
| 3328 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_PUSH) { |
| 3329 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 24U, chartInstance->c1_sfEvent); |
| 3330 | } else { |
| 3331 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 24U, chartInstance->c1_sfEvent); |
| 3332 | } |
| 3333 | |
| 3334 | if (chartInstance->c1_is_UP_PUSH == c1_b_IN_Default) { |
| 3335 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 26U, chartInstance->c1_sfEvent); |
| 3336 | } else { |
| 3337 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 26U, chartInstance->c1_sfEvent); |
| 3338 | } |
| 3339 | |
| 3340 | if (chartInstance->c1_is_UP_PUSH == c1_IN_CutOff) { |
| 3341 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 3342 | } else { |
| 3343 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 3344 | } |
| 3345 | |
| 3346 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_START) { |
| 3347 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 30U, chartInstance->c1_sfEvent); |
| 3348 | } else { |
| 3349 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 30U, chartInstance->c1_sfEvent); |
| 3350 | } |
| 3351 | |
| 3352 | if (chartInstance->c1_is_UP_START == c1_IN_Default) { |
| 3353 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 3354 | } else { |
| 3355 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 3356 | } |
| 3357 | |
| 3358 | if (chartInstance->c1_is_UP_START == c1_IN_SettingNeutral) { |
| 3359 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 32U, chartInstance->c1_sfEvent); |
| 3360 | } else { |
| 3361 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 32U, chartInstance->c1_sfEvent); |
| 3362 | } |
| 3363 | |
| 3364 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_BRAKE) { |
| 3365 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 3366 | } else { |
| 3367 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 3368 | } |
| 3369 | |
| 3370 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_UP_END) { |
| 3371 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 33U, chartInstance->c1_sfEvent); |
| 3372 | } else { |
| 3373 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 33U, chartInstance->c1_sfEvent); |
| 3374 | } |
| 3375 | |
| 3376 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_IDLE) { |
| 3377 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 3378 | } else { |
| 3379 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 3380 | } |
| 3381 | |
| 3382 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_INIT) { |
| 3383 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 21U, chartInstance->c1_sfEvent); |
| 3384 | } else { |
| 3385 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 21U, chartInstance->c1_sfEvent); |
| 3386 | } |
| 3387 | |
| 3388 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_DOWNSHIFTING) { |
| 3389 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 3390 | } else { |
| 3391 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 3392 | } |
| 3393 | |
| 3394 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_START) { |
| 3395 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 14U, chartInstance->c1_sfEvent); |
| 3396 | } else { |
| 3397 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 14U, chartInstance->c1_sfEvent); |
| 3398 | } |
| 3399 | |
| 3400 | if (chartInstance->c1_is_DOWN_START == c1_b_IN_SettingNeutral) { |
| 3401 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 17U, chartInstance->c1_sfEvent); |
| 3402 | } else { |
| 3403 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 17U, chartInstance->c1_sfEvent); |
| 3404 | } |
| 3405 | |
| 3406 | if (chartInstance->c1_is_DOWN_START == c1_IN_ChangeClutch) { |
| 3407 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 3408 | } else { |
| 3409 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 3410 | } |
| 3411 | |
| 3412 | if (chartInstance->c1_is_DOWN_START == c1_b_IN_Default) { |
| 3413 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 16U, chartInstance->c1_sfEvent); |
| 3414 | } else { |
| 3415 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 16U, chartInstance->c1_sfEvent); |
| 3416 | } |
| 3417 | |
| 3418 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_BRAKE) { |
| 3419 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 3420 | } else { |
| 3421 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 3422 | } |
| 3423 | |
| 3424 | if (chartInstance->c1_is_DOWN_BRAKE == c1_b_IN_Default) { |
| 3425 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 11U, chartInstance->c1_sfEvent); |
| 3426 | } else { |
| 3427 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 11U, chartInstance->c1_sfEvent); |
| 3428 | } |
| 3429 | |
| 3430 | if (chartInstance->c1_is_DOWN_BRAKE == c1_IN_ChangeClutch) { |
| 3431 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 3432 | } else { |
| 3433 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 3434 | } |
| 3435 | |
| 3436 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_PUSH) { |
| 3437 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 12U, chartInstance->c1_sfEvent); |
| 3438 | } else { |
| 3439 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 12U, chartInstance->c1_sfEvent); |
| 3440 | } |
| 3441 | |
| 3442 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_REBOUND) { |
| 3443 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 13U, chartInstance->c1_sfEvent); |
| 3444 | } else { |
| 3445 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 13U, chartInstance->c1_sfEvent); |
| 3446 | } |
| 3447 | |
| 3448 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_DOWN_END) { |
| 3449 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 18U, chartInstance->c1_sfEvent); |
| 3450 | } else { |
| 3451 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 18U, chartInstance->c1_sfEvent); |
| 3452 | } |
| 3453 | |
| 3454 | if (chartInstance->c1_is_active_EEPROM_TRIGGER == 1U) { |
| 3455 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 4U, chartInstance->c1_sfEvent); |
| 3456 | } else { |
| 3457 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 4U, chartInstance->c1_sfEvent); |
| 3458 | } |
| 3459 | |
| 3460 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_WAIT) { |
| 3461 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 3462 | } else { |
| 3463 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 3464 | } |
| 3465 | |
| 3466 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_SEND) { |
| 3467 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 3468 | } else { |
| 3469 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 3470 | } |
| 3471 | |
| 3472 | if (chartInstance->c1_is_active_START_ENGINE == 1U) { |
| 3473 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 87U, chartInstance->c1_sfEvent); |
| 3474 | } else { |
| 3475 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 87U, chartInstance->c1_sfEvent); |
| 3476 | } |
| 3477 | |
| 3478 | if (chartInstance->c1_is_START_ENGINE == c1_b_IN_WAIT) { |
| 3479 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 90U, chartInstance->c1_sfEvent); |
| 3480 | } else { |
| 3481 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 90U, chartInstance->c1_sfEvent); |
| 3482 | } |
| 3483 | |
| 3484 | if (chartInstance->c1_is_START_ENGINE == c1_c_IN_START) { |
| 3485 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 3486 | } else { |
| 3487 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 3488 | } |
| 3489 | |
| 3490 | if (chartInstance->c1_is_START_ENGINE == c1_IN_STOP) { |
| 3491 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 89U, chartInstance->c1_sfEvent); |
| 3492 | } else { |
| 3493 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 89U, chartInstance->c1_sfEvent); |
| 3494 | } |
| 3495 | |
| 3496 | if (chartInstance->c1_is_active_SCAN_ADC == 1U) { |
| 3497 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 84U, chartInstance->c1_sfEvent); |
| 3498 | } else { |
| 3499 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 84U, chartInstance->c1_sfEvent); |
| 3500 | } |
| 3501 | |
| 3502 | if (chartInstance->c1_is_SCAN_ADC == c1_IN_SCAN) { |
| 3503 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 85U, chartInstance->c1_sfEvent); |
| 3504 | } else { |
| 3505 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 85U, chartInstance->c1_sfEvent); |
| 3506 | } |
| 3507 | |
| 3508 | if (chartInstance->c1_is_active_ANTISTALL_ENABLE == 1U) { |
| 3509 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 0U, chartInstance->c1_sfEvent); |
| 3510 | } else { |
| 3511 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 0U, chartInstance->c1_sfEvent); |
| 3512 | } |
| 3513 | |
| 3514 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_DISABLE) { |
| 3515 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 3516 | } else { |
| 3517 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 3518 | } |
| 3519 | |
| 3520 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_ENABLE) { |
| 3521 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 2U, chartInstance->c1_sfEvent); |
| 3522 | } else { |
| 3523 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 2U, chartInstance->c1_sfEvent); |
| 3524 | } |
| 3525 | |
| 3526 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RPM_LIMITER) { |
| 3527 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 3528 | } else { |
| 3529 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 3530 | } |
| 3531 | |
| 3532 | _SFD_SET_ANIMATION(c1_prevAniVal); |
| 3533 | _SFD_SET_HONOR_BREAKPOINTS(1U); |
| 3534 | _SFD_ANIMATE(); |
| 3535 | } |
| 3536 | |
| 3537 | static const mxArray *get_sim_state_c1_GCU_Model_genCode |
| 3538 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 3539 | { |
| 3540 | const mxArray *c1_st; |
| 3541 | const mxArray *c1_y = NULL; |
| 3542 | uint8_T c1_hoistedGlobal; |
| 3543 | const mxArray *c1_b_y = NULL; |
| 3544 | uint8_T c1_b_hoistedGlobal; |
| 3545 | const mxArray *c1_c_y = NULL; |
| 3546 | const mxArray *c1_d_y = NULL; |
| 3547 | uint32_T c1_c_hoistedGlobal; |
| 3548 | const mxArray *c1_e_y = NULL; |
| 3549 | uint16_T c1_d_hoistedGlobal; |
| 3550 | const mxArray *c1_f_y = NULL; |
| 3551 | uint16_T c1_e_hoistedGlobal; |
| 3552 | const mxArray *c1_g_y = NULL; |
| 3553 | uint16_T c1_f_hoistedGlobal; |
| 3554 | const mxArray *c1_h_y = NULL; |
| 3555 | real_T c1_g_hoistedGlobal; |
| 3556 | const mxArray *c1_i_y = NULL; |
| 3557 | real_T c1_h_hoistedGlobal; |
| 3558 | const mxArray *c1_j_y = NULL; |
| 3559 | int32_T c1_i_hoistedGlobal; |
| 3560 | const mxArray *c1_k_y = NULL; |
| 3561 | uint16_T c1_j_hoistedGlobal; |
| 3562 | const mxArray *c1_l_y = NULL; |
| 3563 | uint16_T c1_k_hoistedGlobal; |
| 3564 | const mxArray *c1_m_y = NULL; |
| 3565 | real_T c1_l_hoistedGlobal; |
| 3566 | const mxArray *c1_n_y = NULL; |
| 3567 | real_T c1_m_hoistedGlobal; |
| 3568 | const mxArray *c1_o_y = NULL; |
| 3569 | real_T c1_n_hoistedGlobal; |
| 3570 | const mxArray *c1_p_y = NULL; |
| 3571 | real_T c1_o_hoistedGlobal; |
| 3572 | const mxArray *c1_q_y = NULL; |
| 3573 | int32_T c1_p_hoistedGlobal; |
| 3574 | const mxArray *c1_r_y = NULL; |
| 3575 | int32_T c1_q_hoistedGlobal; |
| 3576 | const mxArray *c1_s_y = NULL; |
| 3577 | uint16_T c1_r_hoistedGlobal; |
| 3578 | const mxArray *c1_t_y = NULL; |
| 3579 | real_T c1_s_hoistedGlobal; |
| 3580 | const mxArray *c1_u_y = NULL; |
| 3581 | real_T c1_t_hoistedGlobal; |
| 3582 | const mxArray *c1_v_y = NULL; |
| 3583 | uint16_T c1_u_hoistedGlobal; |
| 3584 | const mxArray *c1_w_y = NULL; |
| 3585 | uint16_T c1_v_hoistedGlobal; |
| 3586 | const mxArray *c1_x_y = NULL; |
| 3587 | uint8_T c1_w_hoistedGlobal; |
| 3588 | const mxArray *c1_y_y = NULL; |
| 3589 | uint8_T c1_x_hoistedGlobal; |
| 3590 | const mxArray *c1_ab_y = NULL; |
| 3591 | uint16_T c1_y_hoistedGlobal; |
| 3592 | const mxArray *c1_bb_y = NULL; |
| 3593 | const mxArray *c1_cb_y = NULL; |
| 3594 | uint8_T c1_ab_hoistedGlobal; |
| 3595 | const mxArray *c1_db_y = NULL; |
| 3596 | int32_T c1_bb_hoistedGlobal; |
| 3597 | const mxArray *c1_eb_y = NULL; |
| 3598 | uint16_T c1_cb_hoistedGlobal; |
| 3599 | const mxArray *c1_fb_y = NULL; |
| 3600 | uint8_T c1_db_hoistedGlobal; |
| 3601 | const mxArray *c1_gb_y = NULL; |
| 3602 | uint8_T c1_eb_hoistedGlobal; |
| 3603 | const mxArray *c1_hb_y = NULL; |
| 3604 | uint8_T c1_fb_hoistedGlobal; |
| 3605 | const mxArray *c1_ib_y = NULL; |
| 3606 | uint8_T c1_gb_hoistedGlobal; |
| 3607 | const mxArray *c1_jb_y = NULL; |
| 3608 | uint8_T c1_hb_hoistedGlobal; |
| 3609 | const mxArray *c1_kb_y = NULL; |
| 3610 | uint8_T c1_ib_hoistedGlobal; |
| 3611 | const mxArray *c1_lb_y = NULL; |
| 3612 | uint8_T c1_jb_hoistedGlobal; |
| 3613 | const mxArray *c1_mb_y = NULL; |
| 3614 | uint8_T c1_kb_hoistedGlobal; |
| 3615 | const mxArray *c1_nb_y = NULL; |
| 3616 | uint8_T c1_lb_hoistedGlobal; |
| 3617 | const mxArray *c1_ob_y = NULL; |
| 3618 | uint8_T c1_mb_hoistedGlobal; |
| 3619 | const mxArray *c1_pb_y = NULL; |
| 3620 | uint8_T c1_nb_hoistedGlobal; |
| 3621 | const mxArray *c1_qb_y = NULL; |
| 3622 | uint8_T c1_ob_hoistedGlobal; |
| 3623 | const mxArray *c1_rb_y = NULL; |
| 3624 | uint8_T c1_pb_hoistedGlobal; |
| 3625 | const mxArray *c1_sb_y = NULL; |
| 3626 | uint8_T c1_qb_hoistedGlobal; |
| 3627 | const mxArray *c1_tb_y = NULL; |
| 3628 | uint8_T c1_rb_hoistedGlobal; |
| 3629 | const mxArray *c1_ub_y = NULL; |
| 3630 | uint8_T c1_sb_hoistedGlobal; |
| 3631 | const mxArray *c1_vb_y = NULL; |
| 3632 | uint8_T c1_tb_hoistedGlobal; |
| 3633 | const mxArray *c1_wb_y = NULL; |
| 3634 | uint8_T c1_ub_hoistedGlobal; |
| 3635 | const mxArray *c1_xb_y = NULL; |
| 3636 | uint8_T c1_vb_hoistedGlobal; |
| 3637 | const mxArray *c1_yb_y = NULL; |
| 3638 | uint8_T c1_wb_hoistedGlobal; |
| 3639 | const mxArray *c1_ac_y = NULL; |
| 3640 | uint8_T c1_xb_hoistedGlobal; |
| 3641 | const mxArray *c1_bc_y = NULL; |
| 3642 | uint8_T c1_yb_hoistedGlobal; |
| 3643 | const mxArray *c1_cc_y = NULL; |
| 3644 | uint8_T c1_ac_hoistedGlobal; |
| 3645 | const mxArray *c1_dc_y = NULL; |
| 3646 | uint8_T c1_bc_hoistedGlobal; |
| 3647 | const mxArray *c1_ec_y = NULL; |
| 3648 | uint8_T c1_cc_hoistedGlobal; |
| 3649 | const mxArray *c1_fc_y = NULL; |
| 3650 | uint8_T c1_dc_hoistedGlobal; |
| 3651 | const mxArray *c1_gc_y = NULL; |
| 3652 | uint8_T c1_ec_hoistedGlobal; |
| 3653 | const mxArray *c1_hc_y = NULL; |
| 3654 | uint8_T c1_fc_hoistedGlobal; |
| 3655 | const mxArray *c1_ic_y = NULL; |
| 3656 | uint8_T c1_gc_hoistedGlobal; |
| 3657 | const mxArray *c1_jc_y = NULL; |
| 3658 | uint8_T c1_hc_hoistedGlobal; |
| 3659 | const mxArray *c1_kc_y = NULL; |
| 3660 | uint8_T c1_ic_hoistedGlobal; |
| 3661 | const mxArray *c1_lc_y = NULL; |
| 3662 | uint8_T c1_jc_hoistedGlobal; |
| 3663 | const mxArray *c1_mc_y = NULL; |
| 3664 | c1_st = NULL; |
| 3665 | c1_st = NULL; |
| 3666 | c1_y = NULL; |
| 3667 | sf_mex_assign(&c1_y, sf_mex_createcellmatrix(62, 1), false); |
| 3668 | c1_hoistedGlobal = *chartInstance->c1_antiStallEnable; |
| 3669 | c1_b_y = NULL; |
| 3670 | sf_mex_assign(&c1_b_y, sf_mex_create("y", &c1_hoistedGlobal, 3, 0U, 0U, 0U, 0), |
| 3671 | false); |
| 3672 | sf_mex_setcell(c1_y, 0, c1_b_y); |
| 3673 | c1_b_hoistedGlobal = *chartInstance->c1_clutchCurrVal; |
| 3674 | c1_c_y = NULL; |
| 3675 | sf_mex_assign(&c1_c_y, sf_mex_create("y", &c1_b_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3676 | 0), false); |
| 3677 | sf_mex_setcell(c1_y, 1, c1_c_y); |
| 3678 | c1_d_y = NULL; |
| 3679 | sf_mex_assign(&c1_d_y, sf_mex_create("y", *chartInstance->c1_lastModeCom, 5, |
| 3680 | 0U, 1U, 0U, 1, 2), false); |
| 3681 | sf_mex_setcell(c1_y, 2, c1_d_y); |
| 3682 | c1_c_hoistedGlobal = *chartInstance->c1_pidCounter; |
| 3683 | c1_e_y = NULL; |
| 3684 | sf_mex_assign(&c1_e_y, sf_mex_create("y", &c1_c_hoistedGlobal, 7, 0U, 0U, 0U, |
| 3685 | 0), false); |
| 3686 | sf_mex_setcell(c1_y, 3, c1_e_y); |
| 3687 | c1_d_hoistedGlobal = *chartInstance->c1_rpmAccTarget; |
| 3688 | c1_f_y = NULL; |
| 3689 | sf_mex_assign(&c1_f_y, sf_mex_create("y", &c1_d_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3690 | 0), false); |
| 3691 | sf_mex_setcell(c1_y, 4, c1_f_y); |
| 3692 | c1_e_hoistedGlobal = *chartInstance->c1_stateFb; |
| 3693 | c1_g_y = NULL; |
| 3694 | sf_mex_assign(&c1_g_y, sf_mex_create("y", &c1_e_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3695 | 0), false); |
| 3696 | sf_mex_setcell(c1_y, 5, c1_g_y); |
| 3697 | c1_f_hoistedGlobal = chartInstance->c1_aacCounter; |
| 3698 | c1_h_y = NULL; |
| 3699 | sf_mex_assign(&c1_h_y, sf_mex_create("y", &c1_f_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3700 | 0), false); |
| 3701 | sf_mex_setcell(c1_y, 6, c1_h_y); |
| 3702 | c1_g_hoistedGlobal = chartInstance->c1_aac_clutchStep; |
| 3703 | c1_i_y = NULL; |
| 3704 | sf_mex_assign(&c1_i_y, sf_mex_create("y", &c1_g_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3705 | 0), false); |
| 3706 | sf_mex_setcell(c1_y, 7, c1_i_y); |
| 3707 | c1_h_hoistedGlobal = chartInstance->c1_aac_clutchValue; |
| 3708 | c1_j_y = NULL; |
| 3709 | sf_mex_assign(&c1_j_y, sf_mex_create("y", &c1_h_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3710 | 0), false); |
| 3711 | sf_mex_setcell(c1_y, 8, c1_j_y); |
| 3712 | c1_i_hoistedGlobal = chartInstance->c1_aac_dtRelease; |
| 3713 | c1_k_y = NULL; |
| 3714 | sf_mex_assign(&c1_k_y, sf_mex_create("y", &c1_i_hoistedGlobal, 6, 0U, 0U, 0U, |
| 3715 | 0), false); |
| 3716 | sf_mex_setcell(c1_y, 9, c1_k_y); |
| 3717 | c1_j_hoistedGlobal = chartInstance->c1_autoXCounter; |
| 3718 | c1_l_y = NULL; |
| 3719 | sf_mex_assign(&c1_l_y, sf_mex_create("y", &c1_j_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3720 | 0), false); |
| 3721 | sf_mex_setcell(c1_y, 10, c1_l_y); |
| 3722 | c1_k_hoistedGlobal = chartInstance->c1_b_autoXCounter; |
| 3723 | c1_m_y = NULL; |
| 3724 | sf_mex_assign(&c1_m_y, sf_mex_create("y", &c1_k_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3725 | 0), false); |
| 3726 | sf_mex_setcell(c1_y, 11, c1_m_y); |
| 3727 | c1_l_hoistedGlobal = chartInstance->c1_autoX_clutchStep; |
| 3728 | c1_n_y = NULL; |
| 3729 | sf_mex_assign(&c1_n_y, sf_mex_create("y", &c1_l_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3730 | 0), false); |
| 3731 | sf_mex_setcell(c1_y, 12, c1_n_y); |
| 3732 | c1_m_hoistedGlobal = chartInstance->c1_b_autoX_clutchStep; |
| 3733 | c1_o_y = NULL; |
| 3734 | sf_mex_assign(&c1_o_y, sf_mex_create("y", &c1_m_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3735 | 0), false); |
| 3736 | sf_mex_setcell(c1_y, 13, c1_o_y); |
| 3737 | c1_n_hoistedGlobal = chartInstance->c1_autoX_clutchValue; |
| 3738 | c1_p_y = NULL; |
| 3739 | sf_mex_assign(&c1_p_y, sf_mex_create("y", &c1_n_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3740 | 0), false); |
| 3741 | sf_mex_setcell(c1_y, 14, c1_p_y); |
| 3742 | c1_o_hoistedGlobal = chartInstance->c1_b_autoX_clutchValue; |
| 3743 | c1_q_y = NULL; |
| 3744 | sf_mex_assign(&c1_q_y, sf_mex_create("y", &c1_o_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3745 | 0), false); |
| 3746 | sf_mex_setcell(c1_y, 15, c1_q_y); |
| 3747 | c1_p_hoistedGlobal = chartInstance->c1_autoX_dtRelease; |
| 3748 | c1_r_y = NULL; |
| 3749 | sf_mex_assign(&c1_r_y, sf_mex_create("y", &c1_p_hoistedGlobal, 6, 0U, 0U, 0U, |
| 3750 | 0), false); |
| 3751 | sf_mex_setcell(c1_y, 16, c1_r_y); |
| 3752 | c1_q_hoistedGlobal = chartInstance->c1_b_autoX_dtRelease; |
| 3753 | c1_s_y = NULL; |
| 3754 | sf_mex_assign(&c1_s_y, sf_mex_create("y", &c1_q_hoistedGlobal, 6, 0U, 0U, 0U, |
| 3755 | 0), false); |
| 3756 | sf_mex_setcell(c1_y, 17, c1_s_y); |
| 3757 | c1_r_hoistedGlobal = chartInstance->c1_buzzerCounter; |
| 3758 | c1_t_y = NULL; |
| 3759 | sf_mex_assign(&c1_t_y, sf_mex_create("y", &c1_r_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3760 | 0), false); |
| 3761 | sf_mex_setcell(c1_y, 18, c1_t_y); |
| 3762 | c1_s_hoistedGlobal = chartInstance->c1_counterWait; |
| 3763 | c1_u_y = NULL; |
| 3764 | sf_mex_assign(&c1_u_y, sf_mex_create("y", &c1_s_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3765 | 0), false); |
| 3766 | sf_mex_setcell(c1_y, 19, c1_u_y); |
| 3767 | c1_t_hoistedGlobal = chartInstance->c1_b_counterWait; |
| 3768 | c1_v_y = NULL; |
| 3769 | sf_mex_assign(&c1_v_y, sf_mex_create("y", &c1_t_hoistedGlobal, 0, 0U, 0U, 0U, |
| 3770 | 0), false); |
| 3771 | sf_mex_setcell(c1_y, 20, c1_v_y); |
| 3772 | c1_u_hoistedGlobal = chartInstance->c1_lastAacCom; |
| 3773 | c1_w_y = NULL; |
| 3774 | sf_mex_assign(&c1_w_y, sf_mex_create("y", &c1_u_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3775 | 0), false); |
| 3776 | sf_mex_setcell(c1_y, 21, c1_w_y); |
| 3777 | c1_v_hoistedGlobal = chartInstance->c1_lastAutoXCom; |
| 3778 | c1_x_y = NULL; |
| 3779 | sf_mex_assign(&c1_x_y, sf_mex_create("y", &c1_v_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3780 | 0), false); |
| 3781 | sf_mex_setcell(c1_y, 22, c1_x_y); |
| 3782 | c1_w_hoistedGlobal = chartInstance->c1_lastCom; |
| 3783 | c1_y_y = NULL; |
| 3784 | sf_mex_assign(&c1_y_y, sf_mex_create("y", &c1_w_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3785 | 0), false); |
| 3786 | sf_mex_setcell(c1_y, 23, c1_y_y); |
| 3787 | c1_x_hoistedGlobal = chartInstance->c1_lastShift; |
| 3788 | c1_ab_y = NULL; |
| 3789 | sf_mex_assign(&c1_ab_y, sf_mex_create("y", &c1_x_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3790 | 0), false); |
| 3791 | sf_mex_setcell(c1_y, 24, c1_ab_y); |
| 3792 | c1_y_hoistedGlobal = chartInstance->c1_lastShiftCom; |
| 3793 | c1_bb_y = NULL; |
| 3794 | sf_mex_assign(&c1_bb_y, sf_mex_create("y", &c1_y_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3795 | 0), false); |
| 3796 | sf_mex_setcell(c1_y, 25, c1_bb_y); |
| 3797 | c1_cb_y = NULL; |
| 3798 | sf_mex_assign(&c1_cb_y, sf_mex_create("y", chartInstance->c1_lastTryShift, 5, |
| 3799 | 0U, 1U, 0U, 2, 1, 2), false); |
| 3800 | sf_mex_setcell(c1_y, 26, c1_cb_y); |
| 3801 | c1_ab_hoistedGlobal = chartInstance->c1_startCounter; |
| 3802 | c1_db_y = NULL; |
| 3803 | sf_mex_assign(&c1_db_y, sf_mex_create("y", &c1_ab_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3804 | 0), false); |
| 3805 | sf_mex_setcell(c1_y, 27, c1_db_y); |
| 3806 | c1_bb_hoistedGlobal = chartInstance->c1_ticksCounter; |
| 3807 | c1_eb_y = NULL; |
| 3808 | sf_mex_assign(&c1_eb_y, sf_mex_create("y", &c1_bb_hoistedGlobal, 6, 0U, 0U, 0U, |
| 3809 | 0), false); |
| 3810 | sf_mex_setcell(c1_y, 28, c1_eb_y); |
| 3811 | c1_cb_hoistedGlobal = chartInstance->c1_timerCounter; |
| 3812 | c1_fb_y = NULL; |
| 3813 | sf_mex_assign(&c1_fb_y, sf_mex_create("y", &c1_cb_hoistedGlobal, 5, 0U, 0U, 0U, |
| 3814 | 0), false); |
| 3815 | sf_mex_setcell(c1_y, 29, c1_fb_y); |
| 3816 | c1_db_hoistedGlobal = chartInstance->c1_is_active_c1_GCU_Model_genCode; |
| 3817 | c1_gb_y = NULL; |
| 3818 | sf_mex_assign(&c1_gb_y, sf_mex_create("y", &c1_db_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3819 | 0), false); |
| 3820 | sf_mex_setcell(c1_y, 30, c1_gb_y); |
| 3821 | c1_eb_hoistedGlobal = chartInstance->c1_is_active_GEARSHIFT; |
| 3822 | c1_hb_y = NULL; |
| 3823 | sf_mex_assign(&c1_hb_y, sf_mex_create("y", &c1_eb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3824 | 0), false); |
| 3825 | sf_mex_setcell(c1_y, 31, c1_hb_y); |
| 3826 | c1_fb_hoistedGlobal = chartInstance->c1_is_active_NEUTRAL_STATE; |
| 3827 | c1_ib_y = NULL; |
| 3828 | sf_mex_assign(&c1_ib_y, sf_mex_create("y", &c1_fb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3829 | 0), false); |
| 3830 | sf_mex_setcell(c1_y, 32, c1_ib_y); |
| 3831 | c1_gb_hoistedGlobal = chartInstance->c1_is_active_MODES; |
| 3832 | c1_jb_y = NULL; |
| 3833 | sf_mex_assign(&c1_jb_y, sf_mex_create("y", &c1_gb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3834 | 0), false); |
| 3835 | sf_mex_setcell(c1_y, 33, c1_jb_y); |
| 3836 | c1_hb_hoistedGlobal = chartInstance->c1_is_active_START_ENGINE; |
| 3837 | c1_kb_y = NULL; |
| 3838 | sf_mex_assign(&c1_kb_y, sf_mex_create("y", &c1_hb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3839 | 0), false); |
| 3840 | sf_mex_setcell(c1_y, 34, c1_kb_y); |
| 3841 | c1_ib_hoistedGlobal = chartInstance->c1_is_active_SCAN_ADC; |
| 3842 | c1_lb_y = NULL; |
| 3843 | sf_mex_assign(&c1_lb_y, sf_mex_create("y", &c1_ib_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3844 | 0), false); |
| 3845 | sf_mex_setcell(c1_y, 35, c1_lb_y); |
| 3846 | c1_jb_hoistedGlobal = chartInstance->c1_is_active_EEPROM_TRIGGER; |
| 3847 | c1_mb_y = NULL; |
| 3848 | sf_mex_assign(&c1_mb_y, sf_mex_create("y", &c1_jb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3849 | 0), false); |
| 3850 | sf_mex_setcell(c1_y, 36, c1_mb_y); |
| 3851 | c1_kb_hoistedGlobal = chartInstance->c1_is_active_ANTISTALL_ENABLE; |
| 3852 | c1_nb_y = NULL; |
| 3853 | sf_mex_assign(&c1_nb_y, sf_mex_create("y", &c1_kb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3854 | 0), false); |
| 3855 | sf_mex_setcell(c1_y, 37, c1_nb_y); |
| 3856 | c1_lb_hoistedGlobal = chartInstance->c1_is_GEARSHIFT; |
| 3857 | c1_ob_y = NULL; |
| 3858 | sf_mex_assign(&c1_ob_y, sf_mex_create("y", &c1_lb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3859 | 0), false); |
| 3860 | sf_mex_setcell(c1_y, 38, c1_ob_y); |
| 3861 | c1_mb_hoistedGlobal = chartInstance->c1_is_UP_START; |
| 3862 | c1_pb_y = NULL; |
| 3863 | sf_mex_assign(&c1_pb_y, sf_mex_create("y", &c1_mb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3864 | 0), false); |
| 3865 | sf_mex_setcell(c1_y, 39, c1_pb_y); |
| 3866 | c1_nb_hoistedGlobal = chartInstance->c1_is_UP_PUSH; |
| 3867 | c1_qb_y = NULL; |
| 3868 | sf_mex_assign(&c1_qb_y, sf_mex_create("y", &c1_nb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3869 | 0), false); |
| 3870 | sf_mex_setcell(c1_y, 40, c1_qb_y); |
| 3871 | c1_ob_hoistedGlobal = chartInstance->c1_is_UP_REBOUND; |
| 3872 | c1_rb_y = NULL; |
| 3873 | sf_mex_assign(&c1_rb_y, sf_mex_create("y", &c1_ob_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3874 | 0), false); |
| 3875 | sf_mex_setcell(c1_y, 41, c1_rb_y); |
| 3876 | c1_pb_hoistedGlobal = chartInstance->c1_is_DOWN_START; |
| 3877 | c1_sb_y = NULL; |
| 3878 | sf_mex_assign(&c1_sb_y, sf_mex_create("y", &c1_pb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3879 | 0), false); |
| 3880 | sf_mex_setcell(c1_y, 42, c1_sb_y); |
| 3881 | c1_qb_hoistedGlobal = chartInstance->c1_is_DOWN_BRAKE; |
| 3882 | c1_tb_y = NULL; |
| 3883 | sf_mex_assign(&c1_tb_y, sf_mex_create("y", &c1_qb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3884 | 0), false); |
| 3885 | sf_mex_setcell(c1_y, 43, c1_tb_y); |
| 3886 | c1_rb_hoistedGlobal = chartInstance->c1_is_NEUTRAL_STATE; |
| 3887 | c1_ub_y = NULL; |
| 3888 | sf_mex_assign(&c1_ub_y, sf_mex_create("y", &c1_rb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3889 | 0), false); |
| 3890 | sf_mex_setcell(c1_y, 44, c1_ub_y); |
| 3891 | c1_sb_hoistedGlobal = chartInstance->c1_is_MODES; |
| 3892 | c1_vb_y = NULL; |
| 3893 | sf_mex_assign(&c1_vb_y, sf_mex_create("y", &c1_sb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3894 | 0), false); |
| 3895 | sf_mex_setcell(c1_y, 45, c1_vb_y); |
| 3896 | c1_tb_hoistedGlobal = chartInstance->c1_is_ACC; |
| 3897 | c1_wb_y = NULL; |
| 3898 | sf_mex_assign(&c1_wb_y, sf_mex_create("y", &c1_tb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3899 | 0), false); |
| 3900 | sf_mex_setcell(c1_y, 46, c1_wb_y); |
| 3901 | c1_ub_hoistedGlobal = chartInstance->c1_is_START_ENGINE; |
| 3902 | c1_xb_y = NULL; |
| 3903 | sf_mex_assign(&c1_xb_y, sf_mex_create("y", &c1_ub_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3904 | 0), false); |
| 3905 | sf_mex_setcell(c1_y, 47, c1_xb_y); |
| 3906 | c1_vb_hoistedGlobal = chartInstance->c1_is_ACTIVE; |
| 3907 | c1_yb_y = NULL; |
| 3908 | sf_mex_assign(&c1_yb_y, sf_mex_create("y", &c1_vb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3909 | 0), false); |
| 3910 | sf_mex_setcell(c1_y, 48, c1_yb_y); |
| 3911 | c1_wb_hoistedGlobal = chartInstance->c1_is_UPSHIFTING; |
| 3912 | c1_ac_y = NULL; |
| 3913 | sf_mex_assign(&c1_ac_y, sf_mex_create("y", &c1_wb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3914 | 0), false); |
| 3915 | sf_mex_setcell(c1_y, 49, c1_ac_y); |
| 3916 | c1_xb_hoistedGlobal = chartInstance->c1_is_DOWNSHIFTING; |
| 3917 | c1_bc_y = NULL; |
| 3918 | sf_mex_assign(&c1_bc_y, sf_mex_create("y", &c1_xb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3919 | 0), false); |
| 3920 | sf_mex_setcell(c1_y, 50, c1_bc_y); |
| 3921 | c1_yb_hoistedGlobal = chartInstance->c1_is_MANUAL_MODES; |
| 3922 | c1_cc_y = NULL; |
| 3923 | sf_mex_assign(&c1_cc_y, sf_mex_create("y", &c1_yb_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3924 | 0), false); |
| 3925 | sf_mex_setcell(c1_y, 51, c1_cc_y); |
| 3926 | c1_ac_hoistedGlobal = chartInstance->c1_is_ACCELERATION; |
| 3927 | c1_dc_y = NULL; |
| 3928 | sf_mex_assign(&c1_dc_y, sf_mex_create("y", &c1_ac_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3929 | 0), false); |
| 3930 | sf_mex_setcell(c1_y, 52, c1_dc_y); |
| 3931 | c1_bc_hoistedGlobal = chartInstance->c1_is_SCAN_ADC; |
| 3932 | c1_ec_y = NULL; |
| 3933 | sf_mex_assign(&c1_ec_y, sf_mex_create("y", &c1_bc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3934 | 0), false); |
| 3935 | sf_mex_setcell(c1_y, 53, c1_ec_y); |
| 3936 | c1_cc_hoistedGlobal = chartInstance->c1_is_EEPROM_TRIGGER; |
| 3937 | c1_fc_y = NULL; |
| 3938 | sf_mex_assign(&c1_fc_y, sf_mex_create("y", &c1_cc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3939 | 0), false); |
| 3940 | sf_mex_setcell(c1_y, 54, c1_fc_y); |
| 3941 | c1_dc_hoistedGlobal = chartInstance->c1_is_AUTOCROSS; |
| 3942 | c1_gc_y = NULL; |
| 3943 | sf_mex_assign(&c1_gc_y, sf_mex_create("y", &c1_dc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3944 | 0), false); |
| 3945 | sf_mex_setcell(c1_y, 55, c1_gc_y); |
| 3946 | c1_ec_hoistedGlobal = chartInstance->c1_is_LAUNCH; |
| 3947 | c1_hc_y = NULL; |
| 3948 | sf_mex_assign(&c1_hc_y, sf_mex_create("y", &c1_ec_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3949 | 0), false); |
| 3950 | sf_mex_setcell(c1_y, 56, c1_hc_y); |
| 3951 | c1_fc_hoistedGlobal = chartInstance->c1_b_is_ACTIVE; |
| 3952 | c1_ic_y = NULL; |
| 3953 | sf_mex_assign(&c1_ic_y, sf_mex_create("y", &c1_fc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3954 | 0), false); |
| 3955 | sf_mex_setcell(c1_y, 57, c1_ic_y); |
| 3956 | c1_gc_hoistedGlobal = chartInstance->c1_is_ANTISTALL_ENABLE; |
| 3957 | c1_jc_y = NULL; |
| 3958 | sf_mex_assign(&c1_jc_y, sf_mex_create("y", &c1_gc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3959 | 0), false); |
| 3960 | sf_mex_setcell(c1_y, 58, c1_jc_y); |
| 3961 | c1_hc_hoistedGlobal = chartInstance->c1_is_ACCELERATION_PID; |
| 3962 | c1_kc_y = NULL; |
| 3963 | sf_mex_assign(&c1_kc_y, sf_mex_create("y", &c1_hc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3964 | 0), false); |
| 3965 | sf_mex_setcell(c1_y, 59, c1_kc_y); |
| 3966 | c1_ic_hoistedGlobal = chartInstance->c1_is_LAUNCH0; |
| 3967 | c1_lc_y = NULL; |
| 3968 | sf_mex_assign(&c1_lc_y, sf_mex_create("y", &c1_ic_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3969 | 0), false); |
| 3970 | sf_mex_setcell(c1_y, 60, c1_lc_y); |
| 3971 | c1_jc_hoistedGlobal = chartInstance->c1_c_is_ACTIVE; |
| 3972 | c1_mc_y = NULL; |
| 3973 | sf_mex_assign(&c1_mc_y, sf_mex_create("y", &c1_jc_hoistedGlobal, 3, 0U, 0U, 0U, |
| 3974 | 0), false); |
| 3975 | sf_mex_setcell(c1_y, 61, c1_mc_y); |
| 3976 | sf_mex_assign(&c1_st, c1_y, false); |
| 3977 | return c1_st; |
| 3978 | } |
| 3979 | |
| 3980 | static void set_sim_state_c1_GCU_Model_genCode |
| 3981 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, const mxArray *c1_st) |
| 3982 | { |
| 3983 | c1_r_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_st)); |
| 3984 | chartInstance->c1_doSetSimStateSideEffects = 1U; |
| 3985 | c1_update_debugger_state_c1_GCU_Model_genCode(chartInstance); |
| 3986 | sf_mex_destroy(&c1_st); |
| 3987 | } |
| 3988 | |
| 3989 | static void c1_set_sim_state_side_effects_c1_GCU_Model_genCode |
| 3990 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 3991 | { |
| 3992 | if (chartInstance->c1_doSetSimStateSideEffects != 0) { |
| 3993 | if (chartInstance->c1_is_active_MODES == 1U) { |
| 3994 | chartInstance->c1_tp_MODES = 1U; |
| 3995 | } else { |
| 3996 | chartInstance->c1_tp_MODES = 0U; |
| 3997 | } |
| 3998 | |
| 3999 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 4000 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 4001 | } else { |
| 4002 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 4003 | } |
| 4004 | |
| 4005 | if (chartInstance->c1_is_ACCELERATION == c1_IN_ACC) { |
| 4006 | chartInstance->c1_tp_ACC = 1U; |
| 4007 | } else { |
| 4008 | chartInstance->c1_tp_ACC = 0U; |
| 4009 | } |
| 4010 | |
| 4011 | if (chartInstance->c1_is_ACC == c1_IN_ACTIVE) { |
| 4012 | chartInstance->c1_tp_ACTIVE = 1U; |
| 4013 | } else { |
| 4014 | chartInstance->c1_tp_ACTIVE = 0U; |
| 4015 | } |
| 4016 | |
| 4017 | if (chartInstance->c1_is_ACTIVE == c1_IN_READY) { |
| 4018 | chartInstance->c1_tp_READY = 1U; |
| 4019 | } else { |
| 4020 | chartInstance->c1_tp_READY = 0U; |
| 4021 | } |
| 4022 | |
| 4023 | if (chartInstance->c1_is_ACTIVE == c1_IN_RELEASING) { |
| 4024 | chartInstance->c1_tp_RELEASING = 1U; |
| 4025 | } else { |
| 4026 | chartInstance->c1_tp_RELEASING = 0U; |
| 4027 | } |
| 4028 | |
| 4029 | if (chartInstance->c1_is_ACTIVE == c1_IN_RUNNING) { |
| 4030 | chartInstance->c1_tp_RUNNING = 1U; |
| 4031 | } else { |
| 4032 | chartInstance->c1_tp_RUNNING = 0U; |
| 4033 | } |
| 4034 | |
| 4035 | if (chartInstance->c1_is_ACTIVE == c1_IN_START) { |
| 4036 | chartInstance->c1_tp_START = 1U; |
| 4037 | } else { |
| 4038 | chartInstance->c1_tp_START = 0U; |
| 4039 | } |
| 4040 | |
| 4041 | if (chartInstance->c1_is_ACTIVE == c1_IN_START_RELEASE) { |
| 4042 | chartInstance->c1_tp_START_RELEASE = 1U; |
| 4043 | } else { |
| 4044 | chartInstance->c1_tp_START_RELEASE = 0U; |
| 4045 | } |
| 4046 | |
| 4047 | if (chartInstance->c1_is_ACC == c1_IN_STOPPING) { |
| 4048 | chartInstance->c1_tp_STOPPING = 1U; |
| 4049 | } else { |
| 4050 | chartInstance->c1_tp_STOPPING = 0U; |
| 4051 | } |
| 4052 | |
| 4053 | if (chartInstance->c1_is_ACCELERATION == c1_IN_DEFAULT) { |
| 4054 | chartInstance->c1_tp_DEFAULT = 1U; |
| 4055 | } else { |
| 4056 | chartInstance->c1_tp_DEFAULT = 0U; |
| 4057 | } |
| 4058 | |
| 4059 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 4060 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 4061 | } else { |
| 4062 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 4063 | } |
| 4064 | |
| 4065 | if (chartInstance->c1_is_ACCELERATION_PID == c1_b_IN_DEFAULT) { |
| 4066 | chartInstance->c1_c_tp_DEFAULT = 1U; |
| 4067 | } else { |
| 4068 | chartInstance->c1_c_tp_DEFAULT = 0U; |
| 4069 | } |
| 4070 | |
| 4071 | if (chartInstance->c1_is_ACCELERATION_PID == c1_IN_LAUNCH0) { |
| 4072 | chartInstance->c1_tp_LAUNCH0 = 1U; |
| 4073 | } else { |
| 4074 | chartInstance->c1_tp_LAUNCH0 = 0U; |
| 4075 | } |
| 4076 | |
| 4077 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_ACTIVE) { |
| 4078 | chartInstance->c1_c_tp_ACTIVE = 1U; |
| 4079 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4080 | "setSimStateSideEffectsInfo", 1, 16) == 0.0) { |
| 4081 | sf_call_output_fcn_enable(chartInstance->S, 16, "ramp", 0); |
| 4082 | } |
| 4083 | } else { |
| 4084 | chartInstance->c1_c_tp_ACTIVE = 0U; |
| 4085 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4086 | "setSimStateSideEffectsInfo", 1, 16) > 0.0) { |
| 4087 | sf_call_output_fcn_disable(chartInstance->S, 16, "ramp", 0); |
| 4088 | } |
| 4089 | } |
| 4090 | |
| 4091 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_READY) { |
| 4092 | chartInstance->c1_c_tp_READY = 1U; |
| 4093 | } else { |
| 4094 | chartInstance->c1_c_tp_READY = 0U; |
| 4095 | } |
| 4096 | |
| 4097 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RELEASE) { |
| 4098 | chartInstance->c1_tp_RELEASE = 1U; |
| 4099 | } else { |
| 4100 | chartInstance->c1_tp_RELEASE = 0U; |
| 4101 | } |
| 4102 | |
| 4103 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RPM_LIMITER) { |
| 4104 | chartInstance->c1_tp_RPM_LIMITER = 1U; |
| 4105 | } else { |
| 4106 | chartInstance->c1_tp_RPM_LIMITER = 0U; |
| 4107 | } |
| 4108 | |
| 4109 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_RUNNING) { |
| 4110 | chartInstance->c1_c_tp_RUNNING = 1U; |
| 4111 | } else { |
| 4112 | chartInstance->c1_c_tp_RUNNING = 0U; |
| 4113 | } |
| 4114 | |
| 4115 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_START) { |
| 4116 | chartInstance->c1_c_tp_START = 1U; |
| 4117 | } else { |
| 4118 | chartInstance->c1_c_tp_START = 0U; |
| 4119 | } |
| 4120 | |
| 4121 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_STOPPING) { |
| 4122 | chartInstance->c1_c_tp_STOPPING = 1U; |
| 4123 | } else { |
| 4124 | chartInstance->c1_c_tp_STOPPING = 0U; |
| 4125 | } |
| 4126 | |
| 4127 | if (chartInstance->c1_is_MODES == c1_IN_AUTOCROSS) { |
| 4128 | chartInstance->c1_tp_AUTOCROSS = 1U; |
| 4129 | } else { |
| 4130 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 4131 | } |
| 4132 | |
| 4133 | if (chartInstance->c1_is_AUTOCROSS == c1_b_IN_DEFAULT) { |
| 4134 | chartInstance->c1_b_tp_DEFAULT = 1U; |
| 4135 | } else { |
| 4136 | chartInstance->c1_b_tp_DEFAULT = 0U; |
| 4137 | } |
| 4138 | |
| 4139 | if (chartInstance->c1_is_AUTOCROSS == c1_IN_LAUNCH) { |
| 4140 | chartInstance->c1_tp_LAUNCH = 1U; |
| 4141 | } else { |
| 4142 | chartInstance->c1_tp_LAUNCH = 0U; |
| 4143 | } |
| 4144 | |
| 4145 | if (chartInstance->c1_is_LAUNCH == c1_IN_ACTIVE) { |
| 4146 | chartInstance->c1_b_tp_ACTIVE = 1U; |
| 4147 | } else { |
| 4148 | chartInstance->c1_b_tp_ACTIVE = 0U; |
| 4149 | } |
| 4150 | |
| 4151 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_READY) { |
| 4152 | chartInstance->c1_b_tp_READY = 1U; |
| 4153 | } else { |
| 4154 | chartInstance->c1_b_tp_READY = 0U; |
| 4155 | } |
| 4156 | |
| 4157 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RELEASING) { |
| 4158 | chartInstance->c1_b_tp_RELEASING = 1U; |
| 4159 | } else { |
| 4160 | chartInstance->c1_b_tp_RELEASING = 0U; |
| 4161 | } |
| 4162 | |
| 4163 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RUNNING) { |
| 4164 | chartInstance->c1_b_tp_RUNNING = 1U; |
| 4165 | } else { |
| 4166 | chartInstance->c1_b_tp_RUNNING = 0U; |
| 4167 | } |
| 4168 | |
| 4169 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START) { |
| 4170 | chartInstance->c1_b_tp_START = 1U; |
| 4171 | } else { |
| 4172 | chartInstance->c1_b_tp_START = 0U; |
| 4173 | } |
| 4174 | |
| 4175 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START_RELEASE) { |
| 4176 | chartInstance->c1_b_tp_START_RELEASE = 1U; |
| 4177 | } else { |
| 4178 | chartInstance->c1_b_tp_START_RELEASE = 0U; |
| 4179 | } |
| 4180 | |
| 4181 | if (chartInstance->c1_is_LAUNCH == c1_IN_STOPPING) { |
| 4182 | chartInstance->c1_b_tp_STOPPING = 1U; |
| 4183 | } else { |
| 4184 | chartInstance->c1_b_tp_STOPPING = 0U; |
| 4185 | } |
| 4186 | |
| 4187 | if (chartInstance->c1_is_MODES == c1_IN_INIT) { |
| 4188 | chartInstance->c1_tp_INIT = 1U; |
| 4189 | } else { |
| 4190 | chartInstance->c1_tp_INIT = 0U; |
| 4191 | } |
| 4192 | |
| 4193 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 4194 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 4195 | } else { |
| 4196 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 4197 | } |
| 4198 | |
| 4199 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_ENDURANCE) { |
| 4200 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 4201 | } else { |
| 4202 | chartInstance->c1_tp_ENDURANCE = 0U; |
| 4203 | } |
| 4204 | |
| 4205 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 4206 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 4207 | } else { |
| 4208 | chartInstance->c1_tp_SKIDPAD = 0U; |
| 4209 | } |
| 4210 | |
| 4211 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 1U) { |
| 4212 | chartInstance->c1_tp_NEUTRAL_STATE = 1U; |
| 4213 | } else { |
| 4214 | chartInstance->c1_tp_NEUTRAL_STATE = 0U; |
| 4215 | } |
| 4216 | |
| 4217 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_NEUTRAL) { |
| 4218 | chartInstance->c1_tp_NEUTRAL = 1U; |
| 4219 | } else { |
| 4220 | chartInstance->c1_tp_NEUTRAL = 0U; |
| 4221 | } |
| 4222 | |
| 4223 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_NO_NEUTRAL) { |
| 4224 | chartInstance->c1_tp_NO_NEUTRAL = 1U; |
| 4225 | } else { |
| 4226 | chartInstance->c1_tp_NO_NEUTRAL = 0U; |
| 4227 | } |
| 4228 | |
| 4229 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) { |
| 4230 | chartInstance->c1_tp_SET_NEUTRAL = 1U; |
| 4231 | } else { |
| 4232 | chartInstance->c1_tp_SET_NEUTRAL = 0U; |
| 4233 | } |
| 4234 | |
| 4235 | if (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_UNSET_NEUTRAL) { |
| 4236 | chartInstance->c1_tp_UNSET_NEUTRAL = 1U; |
| 4237 | } else { |
| 4238 | chartInstance->c1_tp_UNSET_NEUTRAL = 0U; |
| 4239 | } |
| 4240 | |
| 4241 | if (chartInstance->c1_is_active_GEARSHIFT == 1U) { |
| 4242 | chartInstance->c1_tp_GEARSHIFT = 1U; |
| 4243 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4244 | "setSimStateSideEffectsInfo", 1, 42) == 0.0) { |
| 4245 | sf_call_output_fcn_enable(chartInstance->S, 26, "checkCurrent", 0); |
| 4246 | } |
| 4247 | } else { |
| 4248 | chartInstance->c1_tp_GEARSHIFT = 0U; |
| 4249 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4250 | "setSimStateSideEffectsInfo", 1, 42) > 0.0) { |
| 4251 | sf_call_output_fcn_disable(chartInstance->S, 26, "checkCurrent", 0); |
| 4252 | } |
| 4253 | } |
| 4254 | |
| 4255 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_DOWNSHIFTING) { |
| 4256 | chartInstance->c1_tp_DOWNSHIFTING = 1U; |
| 4257 | } else { |
| 4258 | chartInstance->c1_tp_DOWNSHIFTING = 0U; |
| 4259 | } |
| 4260 | |
| 4261 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_BRAKE) { |
| 4262 | chartInstance->c1_tp_DOWN_BRAKE = 1U; |
| 4263 | } else { |
| 4264 | chartInstance->c1_tp_DOWN_BRAKE = 0U; |
| 4265 | } |
| 4266 | |
| 4267 | if (chartInstance->c1_is_DOWN_BRAKE == c1_IN_ChangeClutch) { |
| 4268 | chartInstance->c1_b_tp_ChangeClutch = 1U; |
| 4269 | } else { |
| 4270 | chartInstance->c1_b_tp_ChangeClutch = 0U; |
| 4271 | } |
| 4272 | |
| 4273 | if (chartInstance->c1_is_DOWN_BRAKE == c1_b_IN_Default) { |
| 4274 | chartInstance->c1_e_tp_Default = 1U; |
| 4275 | } else { |
| 4276 | chartInstance->c1_e_tp_Default = 0U; |
| 4277 | } |
| 4278 | |
| 4279 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_PUSH) { |
| 4280 | chartInstance->c1_tp_DOWN_PUSH = 1U; |
| 4281 | } else { |
| 4282 | chartInstance->c1_tp_DOWN_PUSH = 0U; |
| 4283 | } |
| 4284 | |
| 4285 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_REBOUND) { |
| 4286 | chartInstance->c1_tp_DOWN_REBOUND = 1U; |
| 4287 | } else { |
| 4288 | chartInstance->c1_tp_DOWN_REBOUND = 0U; |
| 4289 | } |
| 4290 | |
| 4291 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_START) { |
| 4292 | chartInstance->c1_tp_DOWN_START = 1U; |
| 4293 | } else { |
| 4294 | chartInstance->c1_tp_DOWN_START = 0U; |
| 4295 | } |
| 4296 | |
| 4297 | if (chartInstance->c1_is_DOWN_START == c1_IN_ChangeClutch) { |
| 4298 | chartInstance->c1_tp_ChangeClutch = 1U; |
| 4299 | } else { |
| 4300 | chartInstance->c1_tp_ChangeClutch = 0U; |
| 4301 | } |
| 4302 | |
| 4303 | if (chartInstance->c1_is_DOWN_START == c1_b_IN_Default) { |
| 4304 | chartInstance->c1_d_tp_Default = 1U; |
| 4305 | } else { |
| 4306 | chartInstance->c1_d_tp_Default = 0U; |
| 4307 | } |
| 4308 | |
| 4309 | if (chartInstance->c1_is_DOWN_START == c1_b_IN_SettingNeutral) { |
| 4310 | chartInstance->c1_c_tp_SettingNeutral = 1U; |
| 4311 | } else { |
| 4312 | chartInstance->c1_c_tp_SettingNeutral = 0U; |
| 4313 | } |
| 4314 | |
| 4315 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_DOWN_END) { |
| 4316 | chartInstance->c1_tp_DOWN_END = 1U; |
| 4317 | } else { |
| 4318 | chartInstance->c1_tp_DOWN_END = 0U; |
| 4319 | } |
| 4320 | |
| 4321 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_IDLE) { |
| 4322 | chartInstance->c1_tp_IDLE = 1U; |
| 4323 | } else { |
| 4324 | chartInstance->c1_tp_IDLE = 0U; |
| 4325 | } |
| 4326 | |
| 4327 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_INIT) { |
| 4328 | chartInstance->c1_b_tp_INIT = 1U; |
| 4329 | } else { |
| 4330 | chartInstance->c1_b_tp_INIT = 0U; |
| 4331 | } |
| 4332 | |
| 4333 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_UPSHIFTING) { |
| 4334 | chartInstance->c1_tp_UPSHIFTING = 1U; |
| 4335 | } else { |
| 4336 | chartInstance->c1_tp_UPSHIFTING = 0U; |
| 4337 | } |
| 4338 | |
| 4339 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_BRAKE) { |
| 4340 | chartInstance->c1_tp_UP_BRAKE = 1U; |
| 4341 | } else { |
| 4342 | chartInstance->c1_tp_UP_BRAKE = 0U; |
| 4343 | } |
| 4344 | |
| 4345 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_PUSH) { |
| 4346 | chartInstance->c1_tp_UP_PUSH = 1U; |
| 4347 | } else { |
| 4348 | chartInstance->c1_tp_UP_PUSH = 0U; |
| 4349 | } |
| 4350 | |
| 4351 | if (chartInstance->c1_is_UP_PUSH == c1_IN_CutOff) { |
| 4352 | chartInstance->c1_tp_CutOff = 1U; |
| 4353 | } else { |
| 4354 | chartInstance->c1_tp_CutOff = 0U; |
| 4355 | } |
| 4356 | |
| 4357 | if (chartInstance->c1_is_UP_PUSH == c1_b_IN_Default) { |
| 4358 | chartInstance->c1_b_tp_Default = 1U; |
| 4359 | } else { |
| 4360 | chartInstance->c1_b_tp_Default = 0U; |
| 4361 | } |
| 4362 | |
| 4363 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_REBOUND) { |
| 4364 | chartInstance->c1_tp_UP_REBOUND = 1U; |
| 4365 | } else { |
| 4366 | chartInstance->c1_tp_UP_REBOUND = 0U; |
| 4367 | } |
| 4368 | |
| 4369 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_Default) { |
| 4370 | chartInstance->c1_tp_Default = 1U; |
| 4371 | } else { |
| 4372 | chartInstance->c1_tp_Default = 0U; |
| 4373 | } |
| 4374 | |
| 4375 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_SettingNeutral) { |
| 4376 | chartInstance->c1_tp_SettingNeutral = 1U; |
| 4377 | } else { |
| 4378 | chartInstance->c1_tp_SettingNeutral = 0U; |
| 4379 | } |
| 4380 | |
| 4381 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_START) { |
| 4382 | chartInstance->c1_tp_UP_START = 1U; |
| 4383 | } else { |
| 4384 | chartInstance->c1_tp_UP_START = 0U; |
| 4385 | } |
| 4386 | |
| 4387 | if (chartInstance->c1_is_UP_START == c1_IN_Default) { |
| 4388 | chartInstance->c1_c_tp_Default = 1U; |
| 4389 | } else { |
| 4390 | chartInstance->c1_c_tp_Default = 0U; |
| 4391 | } |
| 4392 | |
| 4393 | if (chartInstance->c1_is_UP_START == c1_IN_SettingNeutral) { |
| 4394 | chartInstance->c1_b_tp_SettingNeutral = 1U; |
| 4395 | } else { |
| 4396 | chartInstance->c1_b_tp_SettingNeutral = 0U; |
| 4397 | } |
| 4398 | |
| 4399 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_UP_END) { |
| 4400 | chartInstance->c1_tp_UP_END = 1U; |
| 4401 | } else { |
| 4402 | chartInstance->c1_tp_UP_END = 0U; |
| 4403 | } |
| 4404 | |
| 4405 | if (chartInstance->c1_is_active_START_ENGINE == 1U) { |
| 4406 | chartInstance->c1_tp_START_ENGINE = 1U; |
| 4407 | } else { |
| 4408 | chartInstance->c1_tp_START_ENGINE = 0U; |
| 4409 | } |
| 4410 | |
| 4411 | if (chartInstance->c1_is_START_ENGINE == c1_c_IN_START) { |
| 4412 | chartInstance->c1_d_tp_START = 1U; |
| 4413 | } else { |
| 4414 | chartInstance->c1_d_tp_START = 0U; |
| 4415 | } |
| 4416 | |
| 4417 | if (chartInstance->c1_is_START_ENGINE == c1_IN_STOP) { |
| 4418 | chartInstance->c1_tp_STOP = 1U; |
| 4419 | } else { |
| 4420 | chartInstance->c1_tp_STOP = 0U; |
| 4421 | } |
| 4422 | |
| 4423 | if (chartInstance->c1_is_START_ENGINE == c1_b_IN_WAIT) { |
| 4424 | chartInstance->c1_b_tp_WAIT = 1U; |
| 4425 | } else { |
| 4426 | chartInstance->c1_b_tp_WAIT = 0U; |
| 4427 | } |
| 4428 | |
| 4429 | if (chartInstance->c1_is_active_SCAN_ADC == 1U) { |
| 4430 | chartInstance->c1_tp_SCAN_ADC = 1U; |
| 4431 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4432 | "setSimStateSideEffectsInfo", 1, 72) == 0.0) { |
| 4433 | sf_call_output_fcn_enable(chartInstance->S, 27, "ScanADC", 0); |
| 4434 | } |
| 4435 | } else { |
| 4436 | chartInstance->c1_tp_SCAN_ADC = 0U; |
| 4437 | if (sf_mex_sub(chartInstance->c1_setSimStateSideEffectsInfo, |
| 4438 | "setSimStateSideEffectsInfo", 1, 72) > 0.0) { |
| 4439 | sf_call_output_fcn_disable(chartInstance->S, 27, "ScanADC", 0); |
| 4440 | } |
| 4441 | } |
| 4442 | |
| 4443 | if (chartInstance->c1_is_SCAN_ADC == c1_IN_SCAN) { |
| 4444 | chartInstance->c1_tp_SCAN = 1U; |
| 4445 | } else { |
| 4446 | chartInstance->c1_tp_SCAN = 0U; |
| 4447 | } |
| 4448 | |
| 4449 | if (chartInstance->c1_is_active_EEPROM_TRIGGER == 1U) { |
| 4450 | chartInstance->c1_tp_EEPROM_TRIGGER = 1U; |
| 4451 | } else { |
| 4452 | chartInstance->c1_tp_EEPROM_TRIGGER = 0U; |
| 4453 | } |
| 4454 | |
| 4455 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_SEND) { |
| 4456 | chartInstance->c1_tp_SEND = 1U; |
| 4457 | } else { |
| 4458 | chartInstance->c1_tp_SEND = 0U; |
| 4459 | } |
| 4460 | |
| 4461 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_WAIT) { |
| 4462 | chartInstance->c1_tp_WAIT = 1U; |
| 4463 | } else { |
| 4464 | chartInstance->c1_tp_WAIT = 0U; |
| 4465 | } |
| 4466 | |
| 4467 | if (chartInstance->c1_is_active_ANTISTALL_ENABLE == 1U) { |
| 4468 | chartInstance->c1_tp_ANTISTALL_ENABLE = 1U; |
| 4469 | } else { |
| 4470 | chartInstance->c1_tp_ANTISTALL_ENABLE = 0U; |
| 4471 | } |
| 4472 | |
| 4473 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_DISABLE) { |
| 4474 | chartInstance->c1_tp_DISABLE = 1U; |
| 4475 | } else { |
| 4476 | chartInstance->c1_tp_DISABLE = 0U; |
| 4477 | } |
| 4478 | |
| 4479 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_ENABLE) { |
| 4480 | chartInstance->c1_tp_ENABLE = 1U; |
| 4481 | } else { |
| 4482 | chartInstance->c1_tp_ENABLE = 0U; |
| 4483 | } |
| 4484 | |
| 4485 | chartInstance->c1_doSetSimStateSideEffects = 0U; |
| 4486 | } |
| 4487 | } |
| 4488 | |
| 4489 | static void finalize_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 4490 | *chartInstance) |
| 4491 | { |
| 4492 | c1_sdiTerminate(chartInstance); |
| 4493 | sf_mex_destroy(&chartInstance->c1_setSimStateSideEffectsInfo); |
| 4494 | } |
| 4495 | |
| 4496 | static void sf_gateway_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 4497 | *chartInstance) |
| 4498 | { |
| 4499 | int32_T c1_i4; |
| 4500 | int32_T c1_i5; |
| 4501 | int32_T c1_i6; |
| 4502 | int32_T c1_i7; |
| 4503 | int32_T c1_i8; |
| 4504 | int32_T c1_i9; |
| 4505 | int32_T c1_i10; |
| 4506 | int32_T c1_i11; |
| 4507 | int32_T c1_i12; |
| 4508 | c1_set_sim_state_side_effects_c1_GCU_Model_genCode(chartInstance); |
| 4509 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 4510 | _sfTime_ = sf_get_time(chartInstance->S); |
| 4511 | _SFD_CC_CALL(CHART_ENTER_SFUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 4512 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_canErrorCom, 46U); |
| 4513 | _SFD_DATA_RANGE_CHECK(*chartInstance->c1_I2_L, 45U); |
| 4514 | _SFD_DATA_RANGE_CHECK(*chartInstance->c1_I1_L, 44U); |
| 4515 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_pidSubMode, 43U); |
| 4516 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currSlipTarget, 42U); |
| 4517 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currSlip, 41U); |
| 4518 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currVhSpeed, 40U); |
| 4519 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currRpm, 39U); |
| 4520 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currTps, 38U); |
| 4521 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_currGear, 37U); |
| 4522 | for (c1_i4 = 0; c1_i4 < 2; c1_i4++) { |
| 4523 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_gearMotorCurent_1_2)[c1_i4], |
| 4524 | 36U); |
| 4525 | } |
| 4526 | |
| 4527 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_antiStallFb, 35U); |
| 4528 | for (c1_i5 = 0; c1_i5 < 8; c1_i5++) { |
| 4529 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_antiStall_parameters) |
| 4530 | [c1_i5], 34U); |
| 4531 | } |
| 4532 | |
| 4533 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_slipUpdateCounter, 33U); |
| 4534 | for (c1_i6 = 0; c1_i6 < 16; c1_i6++) { |
| 4535 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_autoX_parameters)[c1_i6], |
| 4536 | 32U); |
| 4537 | } |
| 4538 | |
| 4539 | for (c1_i7 = 0; c1_i7 < 2; c1_i7++) { |
| 4540 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_autoXCom)[c1_i7], 31U); |
| 4541 | } |
| 4542 | |
| 4543 | for (c1_i8 = 0; c1_i8 < 24; c1_i8++) { |
| 4544 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_timings)[c1_i8], 30U); |
| 4545 | } |
| 4546 | |
| 4547 | for (c1_i9 = 0; c1_i9 < 16; c1_i9++) { |
| 4548 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_acc_parameters)[c1_i9], |
| 4549 | 29U); |
| 4550 | } |
| 4551 | |
| 4552 | for (c1_i10 = 0; c1_i10 < 2; c1_i10++) { |
| 4553 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_modeCom)[c1_i10], 28U); |
| 4554 | } |
| 4555 | |
| 4556 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_clutchTarget, 27U); |
| 4557 | for (c1_i11 = 0; c1_i11 < 2; c1_i11++) { |
| 4558 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_aacCom)[c1_i11], 26U); |
| 4559 | } |
| 4560 | |
| 4561 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_startEngCom, 25U); |
| 4562 | for (c1_i12 = 0; c1_i12 < 2; c1_i12++) { |
| 4563 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_shiftCom)[c1_i12], 24U); |
| 4564 | } |
| 4565 | |
| 4566 | chartInstance->c1_sfEvent = CALL_EVENT; |
| 4567 | c1_c1_GCU_Model_genCode(chartInstance); |
| 4568 | _SFD_SYMBOL_SCOPE_POP(); |
| 4569 | } |
| 4570 | |
| 4571 | static void mdl_start_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct * |
| 4572 | chartInstance) |
| 4573 | { |
| 4574 | c1_init_sf_message_store_memory(chartInstance); |
| 4575 | c1_sdiInitialize(chartInstance); |
| 4576 | sim_mode_is_external(chartInstance->S); |
| 4577 | } |
| 4578 | |
| 4579 | static void c1_enter_internal_c1_GCU_Model_genCode |
| 4580 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 4581 | { |
| 4582 | chartInstance->c1_is_active_MODES = 1U; |
| 4583 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 1, 418U, (int32_T) |
| 4584 | (chartInstance->c1_is_active_MODES == 1)); |
| 4585 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 35U, chartInstance->c1_sfEvent); |
| 4586 | chartInstance->c1_tp_MODES = 1U; |
| 4587 | chartInstance->c1_lastAacCom = 0U; |
| 4588 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 4589 | &chartInstance->c1_lastAacCom); |
| 4590 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 4591 | chartInstance->c1_lastShiftCom = 0U; |
| 4592 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 32, 681U, (void *) |
| 4593 | &chartInstance->c1_lastShiftCom); |
| 4594 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShiftCom, 3U); |
| 4595 | chartInstance->c1_lastAutoXCom = 0U; |
| 4596 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 4597 | &chartInstance->c1_lastAutoXCom); |
| 4598 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 4599 | chartInstance->c1_buzzerCounter = 0U; |
| 4600 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 34, 1063U, (void *) |
| 4601 | &chartInstance->c1_buzzerCounter); |
| 4602 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_buzzerCounter, 0U); |
| 4603 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 78U, chartInstance->c1_sfEvent); |
| 4604 | if (chartInstance->c1_is_MODES == c1_IN_INIT) { |
| 4605 | } else { |
| 4606 | chartInstance->c1_is_MODES = c1_IN_INIT; |
| 4607 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 4608 | &chartInstance->c1_is_MODES); |
| 4609 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 4610 | (chartInstance->c1_is_MODES == 1)); |
| 4611 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 4612 | (chartInstance->c1_is_MODES == 2)); |
| 4613 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 4614 | (chartInstance->c1_is_MODES == 3)); |
| 4615 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 4616 | (chartInstance->c1_is_MODES == 4)); |
| 4617 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 4618 | (chartInstance->c1_is_MODES == 5)); |
| 4619 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 1); |
| 4620 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 4621 | chartInstance->c1_tp_INIT = 1U; |
| 4622 | sf_call_output_fcn_call(chartInstance->S, 14, "BuzzerOn", 0); |
| 4623 | } |
| 4624 | |
| 4625 | chartInstance->c1_is_active_NEUTRAL_STATE = 1U; |
| 4626 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 36, 31U, (int32_T) |
| 4627 | (chartInstance->c1_is_active_NEUTRAL_STATE == 1)); |
| 4628 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 79U, chartInstance->c1_sfEvent); |
| 4629 | chartInstance->c1_tp_NEUTRAL_STATE = 1U; |
| 4630 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 13U, chartInstance->c1_sfEvent); |
| 4631 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NEUTRAL; |
| 4632 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 4633 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 4634 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 4635 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 4636 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 4637 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 4638 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 4639 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 4640 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 4641 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 4642 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 1); |
| 4643 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 4644 | chartInstance->c1_tp_NEUTRAL = 1U; |
| 4645 | if (chartInstance->c1_is_active_GEARSHIFT == 1U) { |
| 4646 | } else { |
| 4647 | chartInstance->c1_is_active_GEARSHIFT = 1U; |
| 4648 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 41, 1U, (int32_T) |
| 4649 | (chartInstance->c1_is_active_GEARSHIFT == 1)); |
| 4650 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 7U, chartInstance->c1_sfEvent); |
| 4651 | chartInstance->c1_tp_GEARSHIFT = 1U; |
| 4652 | chartInstance->c1_ticksCounter = 0; |
| 4653 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 4654 | &chartInstance->c1_ticksCounter); |
| 4655 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 4656 | sf_call_output_fcn_enable(chartInstance->S, 26, "checkCurrent", 0); |
| 4657 | } |
| 4658 | |
| 4659 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 0U, chartInstance->c1_sfEvent); |
| 4660 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_INIT) { |
| 4661 | } else { |
| 4662 | chartInstance->c1_is_GEARSHIFT = c1_IN_INIT; |
| 4663 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 4664 | &chartInstance->c1_is_GEARSHIFT); |
| 4665 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 4666 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 4667 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 4668 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 4669 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 4670 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 4671 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 4672 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 4673 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 4674 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 4675 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 4676 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 4677 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 1); |
| 4678 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 21U, chartInstance->c1_sfEvent); |
| 4679 | chartInstance->c1_b_tp_INIT = 1U; |
| 4680 | chartInstance->c1_ticksCounter = 0; |
| 4681 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 4682 | &chartInstance->c1_ticksCounter); |
| 4683 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 4684 | } |
| 4685 | |
| 4686 | chartInstance->c1_is_active_START_ENGINE = 1U; |
| 4687 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 67, 479U, (int32_T) |
| 4688 | (chartInstance->c1_is_active_START_ENGINE == 1)); |
| 4689 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 87U, chartInstance->c1_sfEvent); |
| 4690 | chartInstance->c1_tp_START_ENGINE = 1U; |
| 4691 | chartInstance->c1_lastCom = 0U; |
| 4692 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 85, 484U, (void *) |
| 4693 | &chartInstance->c1_lastCom); |
| 4694 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastCom, 18U); |
| 4695 | chartInstance->c1_startCounter = 0U; |
| 4696 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 4697 | &chartInstance->c1_startCounter); |
| 4698 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 4699 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 95U, chartInstance->c1_sfEvent); |
| 4700 | chartInstance->c1_is_START_ENGINE = c1_b_IN_WAIT; |
| 4701 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 4702 | &chartInstance->c1_is_START_ENGINE); |
| 4703 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 4704 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 4705 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 4706 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 4707 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 4708 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 4709 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 1); |
| 4710 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 90U, chartInstance->c1_sfEvent); |
| 4711 | chartInstance->c1_b_tp_WAIT = 1U; |
| 4712 | if (chartInstance->c1_is_active_SCAN_ADC == 1U) { |
| 4713 | } else { |
| 4714 | chartInstance->c1_is_active_SCAN_ADC = 1U; |
| 4715 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 71, 929U, (int32_T) |
| 4716 | (chartInstance->c1_is_active_SCAN_ADC == 1)); |
| 4717 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 84U, chartInstance->c1_sfEvent); |
| 4718 | chartInstance->c1_tp_SCAN_ADC = 1U; |
| 4719 | chartInstance->c1_timerCounter = 0U; |
| 4720 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 87, 938U, (void *) |
| 4721 | &chartInstance->c1_timerCounter); |
| 4722 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_timerCounter, 20U); |
| 4723 | sf_call_output_fcn_enable(chartInstance->S, 27, "ScanADC", 0); |
| 4724 | } |
| 4725 | |
| 4726 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 147U, chartInstance->c1_sfEvent); |
| 4727 | if (chartInstance->c1_is_SCAN_ADC == c1_IN_SCAN) { |
| 4728 | } else { |
| 4729 | chartInstance->c1_is_SCAN_ADC = c1_IN_SCAN; |
| 4730 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 71, 929U, (void *) |
| 4731 | &chartInstance->c1_is_SCAN_ADC); |
| 4732 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 72, 932U, (int32_T) |
| 4733 | (chartInstance->c1_is_SCAN_ADC == 1)); |
| 4734 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 71, 929U, 1); |
| 4735 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 85U, chartInstance->c1_sfEvent); |
| 4736 | chartInstance->c1_tp_SCAN = 1U; |
| 4737 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 86U, chartInstance->c1_sfEvent); |
| 4738 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 4739 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 86U, chartInstance->c1_sfEvent); |
| 4740 | sf_call_output_fcn_call(chartInstance->S, 27, "ScanADC", 0); |
| 4741 | _SFD_SYMBOL_SCOPE_POP(); |
| 4742 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 86U, chartInstance->c1_sfEvent); |
| 4743 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 86U, chartInstance->c1_sfEvent); |
| 4744 | } |
| 4745 | |
| 4746 | chartInstance->c1_is_active_EEPROM_TRIGGER = 1U; |
| 4747 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 73, 940U, (int32_T) |
| 4748 | (chartInstance->c1_is_active_EEPROM_TRIGGER == 1)); |
| 4749 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 4U, chartInstance->c1_sfEvent); |
| 4750 | chartInstance->c1_tp_EEPROM_TRIGGER = 1U; |
| 4751 | chartInstance->c1_counterWait = 0.0; |
| 4752 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 84, 950U, (void *) |
| 4753 | &chartInstance->c1_counterWait); |
| 4754 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_counterWait, 17U); |
| 4755 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 148U, chartInstance->c1_sfEvent); |
| 4756 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_WAIT) { |
| 4757 | } else { |
| 4758 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_WAIT; |
| 4759 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 73, 940U, (void *) |
| 4760 | &chartInstance->c1_is_EEPROM_TRIGGER); |
| 4761 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4762 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4763 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4764 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4765 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 73, 940U, 1); |
| 4766 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 4767 | chartInstance->c1_tp_WAIT = 1U; |
| 4768 | chartInstance->c1_counterWait = 1.0; |
| 4769 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 84, 950U, (void *) |
| 4770 | &chartInstance->c1_counterWait); |
| 4771 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_counterWait, 17U); |
| 4772 | } |
| 4773 | |
| 4774 | chartInstance->c1_is_active_ANTISTALL_ENABLE = 1U; |
| 4775 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 76, 1069U, (int32_T) |
| 4776 | (chartInstance->c1_is_active_ANTISTALL_ENABLE == 1)); |
| 4777 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 0U, chartInstance->c1_sfEvent); |
| 4778 | chartInstance->c1_tp_ANTISTALL_ENABLE = 1U; |
| 4779 | chartInstance->c1_b_counterWait = 0.0; |
| 4780 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 88, 1068U, (void *) |
| 4781 | &chartInstance->c1_b_counterWait); |
| 4782 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_counterWait, 21U); |
| 4783 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 182U, chartInstance->c1_sfEvent); |
| 4784 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_DISABLE) { |
| 4785 | } else { |
| 4786 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_IN_DISABLE; |
| 4787 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 76, 1069U, (void *) |
| 4788 | &chartInstance->c1_is_ANTISTALL_ENABLE); |
| 4789 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 4790 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 4791 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 4792 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 4793 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 76, 1069U, 1); |
| 4794 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 4795 | chartInstance->c1_tp_DISABLE = 1U; |
| 4796 | *chartInstance->c1_antiStallEnable = 0U; |
| 4797 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 14, 1073U, (void *) |
| 4798 | chartInstance->c1_antiStallEnable); |
| 4799 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_antiStallEnable, 50U); |
| 4800 | } |
| 4801 | } |
| 4802 | |
| 4803 | static void c1_c1_GCU_Model_genCode(SFc1_GCU_Model_genCodeInstanceStruct |
| 4804 | *chartInstance) |
| 4805 | { |
| 4806 | boolean_T c1_b_out; |
| 4807 | int32_T c1_i13; |
| 4808 | boolean_T c1_c_out; |
| 4809 | _SFD_CC_CALL(CHART_ENTER_DURING_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 4810 | if (chartInstance->c1_is_active_c1_GCU_Model_genCode == 0U) { |
| 4811 | _SFD_CC_CALL(CHART_ENTER_ENTRY_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 4812 | chartInstance->c1_is_active_c1_GCU_Model_genCode = 1U; |
| 4813 | _SFD_CC_CALL(EXIT_OUT_OF_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 4814 | c1_enter_internal_c1_GCU_Model_genCode(chartInstance); |
| 4815 | } else { |
| 4816 | if (chartInstance->c1_is_active_MODES == 0U) { |
| 4817 | } else { |
| 4818 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 35U, |
| 4819 | chartInstance->c1_sfEvent); |
| 4820 | switch (chartInstance->c1_is_MODES) { |
| 4821 | case c1_IN_ACCELERATION: |
| 4822 | CV_STATE_EVAL(35, 0, c1_IN_ACCELERATION); |
| 4823 | c1_ACCELERATION(chartInstance); |
| 4824 | break; |
| 4825 | |
| 4826 | case c1_IN_ACCELERATION_PID: |
| 4827 | CV_STATE_EVAL(35, 0, c1_IN_ACCELERATION_PID); |
| 4828 | c1_ACCELERATION_PID(chartInstance); |
| 4829 | break; |
| 4830 | |
| 4831 | case c1_IN_AUTOCROSS: |
| 4832 | CV_STATE_EVAL(35, 0, c1_IN_AUTOCROSS); |
| 4833 | c1_AUTOCROSS(chartInstance); |
| 4834 | break; |
| 4835 | |
| 4836 | case c1_IN_INIT: |
| 4837 | CV_STATE_EVAL(35, 0, c1_IN_INIT); |
| 4838 | c1_INIT(chartInstance); |
| 4839 | break; |
| 4840 | |
| 4841 | case c1_IN_MANUAL_MODES: |
| 4842 | CV_STATE_EVAL(35, 0, c1_IN_MANUAL_MODES); |
| 4843 | c1_MANUAL_MODES(chartInstance); |
| 4844 | break; |
| 4845 | |
| 4846 | default: |
| 4847 | CV_STATE_EVAL(35, 0, 0); |
| 4848 | |
| 4849 | /* Unreachable state, for coverage only */ |
| 4850 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 4851 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 4852 | (chartInstance->c1_is_MODES == 1)); |
| 4853 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 4854 | (chartInstance->c1_is_MODES == 2)); |
| 4855 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 4856 | (chartInstance->c1_is_MODES == 3)); |
| 4857 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 4858 | (chartInstance->c1_is_MODES == 4)); |
| 4859 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 4860 | (chartInstance->c1_is_MODES == 5)); |
| 4861 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 4862 | break; |
| 4863 | } |
| 4864 | |
| 4865 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 35U, chartInstance->c1_sfEvent); |
| 4866 | } |
| 4867 | |
| 4868 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 0U) { |
| 4869 | } else { |
| 4870 | c1_NEUTRAL_STATE(chartInstance); |
| 4871 | } |
| 4872 | |
| 4873 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 4874 | } else { |
| 4875 | c1_GEARSHIFT(chartInstance); |
| 4876 | } |
| 4877 | |
| 4878 | if (chartInstance->c1_is_active_START_ENGINE == 0U) { |
| 4879 | } else { |
| 4880 | c1_START_ENGINE(chartInstance); |
| 4881 | } |
| 4882 | |
| 4883 | if (chartInstance->c1_is_active_SCAN_ADC == 0U) { |
| 4884 | } else { |
| 4885 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 84U, |
| 4886 | chartInstance->c1_sfEvent); |
| 4887 | if (chartInstance->c1_is_SCAN_ADC != c1_IN_SCAN) { |
| 4888 | } else { |
| 4889 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 85U, |
| 4890 | chartInstance->c1_sfEvent); |
| 4891 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 86U, chartInstance->c1_sfEvent); |
| 4892 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 4893 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 86U, |
| 4894 | chartInstance->c1_sfEvent); |
| 4895 | sf_call_output_fcn_call(chartInstance->S, 27, "ScanADC", 0); |
| 4896 | _SFD_SYMBOL_SCOPE_POP(); |
| 4897 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 86U, chartInstance->c1_sfEvent); |
| 4898 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 86U, chartInstance->c1_sfEvent); |
| 4899 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 85U, chartInstance->c1_sfEvent); |
| 4900 | } |
| 4901 | |
| 4902 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 84U, chartInstance->c1_sfEvent); |
| 4903 | } |
| 4904 | |
| 4905 | if (chartInstance->c1_is_active_EEPROM_TRIGGER == 0U) { |
| 4906 | } else { |
| 4907 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 4U, |
| 4908 | chartInstance->c1_sfEvent); |
| 4909 | switch (chartInstance->c1_is_EEPROM_TRIGGER) { |
| 4910 | case c1_IN_SEND: |
| 4911 | CV_STATE_EVAL(4, 0, c1_IN_SEND); |
| 4912 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 150U, chartInstance->c1_sfEvent); |
| 4913 | chartInstance->c1_tp_SEND = 0U; |
| 4914 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_NO_ACTIVE_CHILD; |
| 4915 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4916 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4917 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4918 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4919 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 4920 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_WAIT) { |
| 4921 | } else { |
| 4922 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_WAIT; |
| 4923 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 73, 940U, (void *) |
| 4924 | &chartInstance->c1_is_EEPROM_TRIGGER); |
| 4925 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4926 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4927 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4928 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4929 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 73, 940U, 1); |
| 4930 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 4931 | chartInstance->c1_tp_WAIT = 1U; |
| 4932 | chartInstance->c1_counterWait = 1.0; |
| 4933 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 84, 950U, (void *) |
| 4934 | &chartInstance->c1_counterWait); |
| 4935 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_counterWait, 17U); |
| 4936 | } |
| 4937 | |
| 4938 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 5U, chartInstance->c1_sfEvent); |
| 4939 | break; |
| 4940 | |
| 4941 | case c1_IN_WAIT: |
| 4942 | CV_STATE_EVAL(4, 0, c1_IN_WAIT); |
| 4943 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 149U, |
| 4944 | chartInstance->c1_sfEvent); |
| 4945 | c1_b_out = (CV_TRANSITION_EVAL(149U, (int32_T)_SFD_CCP_CALL(5U, 149U, 0, |
| 4946 | (boolean_T)CV_RELATIONAL_EVAL(5U, 149U, 0, |
| 4947 | chartInstance->c1_counterWait, 10.0, -1, 5U, |
| 4948 | chartInstance->c1_counterWait >= 10.0) != 0U, |
| 4949 | chartInstance->c1_sfEvent)) != 0); |
| 4950 | if (c1_b_out) { |
| 4951 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 149U, chartInstance->c1_sfEvent); |
| 4952 | chartInstance->c1_tp_WAIT = 0U; |
| 4953 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_NO_ACTIVE_CHILD; |
| 4954 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4955 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4956 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4957 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4958 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 4959 | if (chartInstance->c1_is_EEPROM_TRIGGER == c1_IN_SEND) { |
| 4960 | } else { |
| 4961 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_SEND; |
| 4962 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 73, 940U, (void *) |
| 4963 | &chartInstance->c1_is_EEPROM_TRIGGER); |
| 4964 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4965 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4966 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4967 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4968 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 73, 940U, 2); |
| 4969 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 4970 | chartInstance->c1_tp_SEND = 1U; |
| 4971 | sf_call_output_fcn_call(chartInstance->S, 13, "eepromTrigger", 0); |
| 4972 | } |
| 4973 | } else { |
| 4974 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 6U, |
| 4975 | chartInstance->c1_sfEvent); |
| 4976 | chartInstance->c1_counterWait++; |
| 4977 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 84, 950U, (void *) |
| 4978 | &chartInstance->c1_counterWait); |
| 4979 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_counterWait, 17U); |
| 4980 | } |
| 4981 | |
| 4982 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 6U, chartInstance->c1_sfEvent); |
| 4983 | break; |
| 4984 | |
| 4985 | default: |
| 4986 | CV_STATE_EVAL(4, 0, 0); |
| 4987 | |
| 4988 | /* Unreachable state, for coverage only */ |
| 4989 | chartInstance->c1_is_EEPROM_TRIGGER = c1_IN_NO_ACTIVE_CHILD; |
| 4990 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 4991 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 4992 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 4993 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 4994 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 4995 | break; |
| 4996 | } |
| 4997 | |
| 4998 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 4U, chartInstance->c1_sfEvent); |
| 4999 | } |
| 5000 | |
| 5001 | if (chartInstance->c1_is_active_ANTISTALL_ENABLE == 0U) { |
| 5002 | } else { |
| 5003 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 0U, |
| 5004 | chartInstance->c1_sfEvent); |
| 5005 | switch (chartInstance->c1_is_ANTISTALL_ENABLE) { |
| 5006 | case c1_IN_DISABLE: |
| 5007 | CV_STATE_EVAL(0, 0, c1_IN_DISABLE); |
| 5008 | *chartInstance->c1_antiStallEnable = 0U; |
| 5009 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 181U, |
| 5010 | chartInstance->c1_sfEvent); |
| 5011 | c1_i13 = (*chartInstance->c1_antiStall_parameters)[sf_array_bounds_check |
| 5012 | (sfGlobalDebugInstanceStruct, chartInstance->S, 1074U, 1, 20, 34U, |
| 5013 | (int32_T)anti_stall_params_RPM_THRESHOLD, 0, 7)]; |
| 5014 | c1_c_out = (CV_TRANSITION_EVAL(181U, (int32_T)_SFD_CCP_CALL(5U, 181U, 0, |
| 5015 | (boolean_T)CV_RELATIONAL_EVAL(5U, 181U, 0, (real_T)c1_i13, 0.0, 0, 1U, |
| 5016 | c1_i13 != 0) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 5017 | if (c1_c_out) { |
| 5018 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 181U, chartInstance->c1_sfEvent); |
| 5019 | chartInstance->c1_tp_DISABLE = 0U; |
| 5020 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_IN_NO_ACTIVE_CHILD; |
| 5021 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 5022 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 5023 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 5024 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 5025 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 5026 | if (chartInstance->c1_is_ANTISTALL_ENABLE == c1_IN_ENABLE) { |
| 5027 | } else { |
| 5028 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_IN_ENABLE; |
| 5029 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 76, 1069U, (void *) |
| 5030 | &chartInstance->c1_is_ANTISTALL_ENABLE); |
| 5031 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 5032 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 5033 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 5034 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 5035 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 76, 1069U, 2); |
| 5036 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 2U, chartInstance->c1_sfEvent); |
| 5037 | chartInstance->c1_tp_ENABLE = 1U; |
| 5038 | *chartInstance->c1_antiStallEnable = 1U; |
| 5039 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 14, 1073U, (void *) |
| 5040 | chartInstance->c1_antiStallEnable); |
| 5041 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_antiStallEnable, |
| 5042 | 50U); |
| 5043 | } |
| 5044 | } else { |
| 5045 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 1U, |
| 5046 | chartInstance->c1_sfEvent); |
| 5047 | } |
| 5048 | |
| 5049 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 1U, chartInstance->c1_sfEvent); |
| 5050 | break; |
| 5051 | |
| 5052 | case c1_IN_ENABLE: |
| 5053 | CV_STATE_EVAL(0, 0, c1_IN_ENABLE); |
| 5054 | *chartInstance->c1_antiStallEnable = 1U; |
| 5055 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 2U, |
| 5056 | chartInstance->c1_sfEvent); |
| 5057 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 2U, chartInstance->c1_sfEvent); |
| 5058 | break; |
| 5059 | |
| 5060 | default: |
| 5061 | CV_STATE_EVAL(0, 0, 0); |
| 5062 | |
| 5063 | /* Unreachable state, for coverage only */ |
| 5064 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_IN_NO_ACTIVE_CHILD; |
| 5065 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 5066 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 5067 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 5068 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 5069 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 5070 | break; |
| 5071 | } |
| 5072 | |
| 5073 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 5074 | } |
| 5075 | } |
| 5076 | |
| 5077 | _SFD_CC_CALL(EXIT_OUT_OF_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent); |
| 5078 | } |
| 5079 | |
| 5080 | static void initSimStructsc1_GCU_Model_genCode |
| 5081 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 5082 | { |
| 5083 | (void)chartInstance; |
| 5084 | } |
| 5085 | |
| 5086 | static void c1_enter_atomic_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct |
| 5087 | *chartInstance) |
| 5088 | { |
| 5089 | int32_T c1_i14; |
| 5090 | int32_T c1_i15; |
| 5091 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom)[0]; |
| 5092 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5093 | chartInstance->c1_lastModeCom); |
| 5094 | for (c1_i14 = 0; c1_i14 < 2; c1_i14++) { |
| 5095 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i14], 48U); |
| 5096 | } |
| 5097 | |
| 5098 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom)[1]; |
| 5099 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5100 | chartInstance->c1_lastModeCom); |
| 5101 | for (c1_i15 = 0; c1_i15 < 2; c1_i15++) { |
| 5102 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i15], 48U); |
| 5103 | } |
| 5104 | |
| 5105 | c1_checkShift(chartInstance); |
| 5106 | c1_checkClutch(chartInstance); |
| 5107 | } |
| 5108 | |
| 5109 | static void c1_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 5110 | { |
| 5111 | boolean_T c1_temp; |
| 5112 | boolean_T c1_b_out; |
| 5113 | boolean_T c1_c_out; |
| 5114 | boolean_T c1_d_out; |
| 5115 | boolean_T c1_e_out; |
| 5116 | boolean_T c1_f_out; |
| 5117 | int32_T c1_i16; |
| 5118 | int32_T c1_i17; |
| 5119 | int32_T c1_i18; |
| 5120 | int32_T c1_i19; |
| 5121 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 143U, chartInstance->c1_sfEvent); |
| 5122 | c1_temp = _SFD_CCP_CALL(5U, 143U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 143U, 0, |
| 5123 | (real_T)(*chartInstance->c1_modeCom)[0], (real_T) |
| 5124 | (*chartInstance->c1_lastModeCom)[0], 0, 1U, (*chartInstance->c1_modeCom)[0] |
| 5125 | != (*chartInstance->c1_lastModeCom)[0]) != 0U, chartInstance->c1_sfEvent); |
| 5126 | if (c1_temp) { |
| 5127 | c1_temp = _SFD_CCP_CALL(5U, 143U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, 143U, |
| 5128 | 1, (real_T)(*chartInstance->c1_modeCom)[1], (real_T) |
| 5129 | (*chartInstance->c1_lastModeCom)[1], 0, 1U, (*chartInstance->c1_modeCom)[1] |
| 5130 | != (*chartInstance->c1_lastModeCom)[1]) != 0U, chartInstance->c1_sfEvent); |
| 5131 | } |
| 5132 | |
| 5133 | c1_b_out = (CV_TRANSITION_EVAL(143U, (int32_T)c1_temp) != 0); |
| 5134 | if (c1_b_out) { |
| 5135 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 143U, chartInstance->c1_sfEvent); |
| 5136 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 145U, chartInstance->c1_sfEvent); |
| 5137 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 137U, |
| 5138 | chartInstance->c1_sfEvent); |
| 5139 | c1_c_out = (CV_TRANSITION_EVAL(137U, (int32_T)_SFD_CCP_CALL(5U, 137U, 0, |
| 5140 | ((*chartInstance->c1_modeCom)[1] == ENDURANCE_MODE) != 0U, |
| 5141 | chartInstance->c1_sfEvent)) != 0); |
| 5142 | if (c1_c_out) { |
| 5143 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 137U, chartInstance->c1_sfEvent); |
| 5144 | c1_exit_internal_MANUAL_MODES(chartInstance); |
| 5145 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 5146 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5147 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5148 | (chartInstance->c1_is_MODES == 1)); |
| 5149 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5150 | (chartInstance->c1_is_MODES == 2)); |
| 5151 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5152 | (chartInstance->c1_is_MODES == 3)); |
| 5153 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5154 | (chartInstance->c1_is_MODES == 4)); |
| 5155 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5156 | (chartInstance->c1_is_MODES == 5)); |
| 5157 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 5158 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5159 | &chartInstance->c1_is_MANUAL_MODES); |
| 5160 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5161 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5162 | } else { |
| 5163 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5164 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5165 | &chartInstance->c1_is_MODES); |
| 5166 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5167 | (chartInstance->c1_is_MODES == 1)); |
| 5168 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5169 | (chartInstance->c1_is_MODES == 2)); |
| 5170 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5171 | (chartInstance->c1_is_MODES == 3)); |
| 5172 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5173 | (chartInstance->c1_is_MODES == 4)); |
| 5174 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5175 | (chartInstance->c1_is_MODES == 5)); |
| 5176 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5177 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5178 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 5179 | } |
| 5180 | |
| 5181 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 5182 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5183 | &chartInstance->c1_is_MANUAL_MODES); |
| 5184 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5185 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5186 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5187 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5188 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 5189 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 5190 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5191 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 5192 | } else { |
| 5193 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 138U, chartInstance->c1_sfEvent); |
| 5194 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 139U, |
| 5195 | chartInstance->c1_sfEvent); |
| 5196 | c1_d_out = (CV_TRANSITION_EVAL(139U, (int32_T)_SFD_CCP_CALL(5U, 139U, 0, |
| 5197 | ((*chartInstance->c1_modeCom)[1] == SKIDPAD_MODE) != 0U, |
| 5198 | chartInstance->c1_sfEvent)) != 0); |
| 5199 | if (c1_d_out) { |
| 5200 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 139U, chartInstance->c1_sfEvent); |
| 5201 | c1_exit_internal_MANUAL_MODES(chartInstance); |
| 5202 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 5203 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5204 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5205 | (chartInstance->c1_is_MODES == 1)); |
| 5206 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5207 | (chartInstance->c1_is_MODES == 2)); |
| 5208 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5209 | (chartInstance->c1_is_MODES == 3)); |
| 5210 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5211 | (chartInstance->c1_is_MODES == 4)); |
| 5212 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5213 | (chartInstance->c1_is_MODES == 5)); |
| 5214 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 5215 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5216 | &chartInstance->c1_is_MANUAL_MODES); |
| 5217 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5218 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5219 | } else { |
| 5220 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5221 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5222 | &chartInstance->c1_is_MODES); |
| 5223 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5224 | (chartInstance->c1_is_MODES == 1)); |
| 5225 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5226 | (chartInstance->c1_is_MODES == 2)); |
| 5227 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5228 | (chartInstance->c1_is_MODES == 3)); |
| 5229 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5230 | (chartInstance->c1_is_MODES == 4)); |
| 5231 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5232 | (chartInstance->c1_is_MODES == 5)); |
| 5233 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5234 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5235 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 5236 | } |
| 5237 | |
| 5238 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 5239 | } else { |
| 5240 | chartInstance->c1_is_MANUAL_MODES = c1_IN_SKIDPAD; |
| 5241 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5242 | &chartInstance->c1_is_MANUAL_MODES); |
| 5243 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5244 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5245 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5246 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5247 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 3); |
| 5248 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 2); |
| 5249 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 5250 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 5251 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 5252 | } |
| 5253 | } else { |
| 5254 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 140U, chartInstance->c1_sfEvent); |
| 5255 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 141U, |
| 5256 | chartInstance->c1_sfEvent); |
| 5257 | c1_e_out = (CV_TRANSITION_EVAL(141U, (int32_T)_SFD_CCP_CALL(5U, 141U, 0, |
| 5258 | ((*chartInstance->c1_modeCom)[1] == ACCELERATION_MODE) != 0U, |
| 5259 | chartInstance->c1_sfEvent)) != 0); |
| 5260 | if (c1_e_out) { |
| 5261 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 141U, chartInstance->c1_sfEvent); |
| 5262 | c1_exit_internal_MANUAL_MODES(chartInstance); |
| 5263 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 5264 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5265 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5266 | (chartInstance->c1_is_MODES == 1)); |
| 5267 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5268 | (chartInstance->c1_is_MODES == 2)); |
| 5269 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5270 | (chartInstance->c1_is_MODES == 3)); |
| 5271 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5272 | (chartInstance->c1_is_MODES == 4)); |
| 5273 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5274 | (chartInstance->c1_is_MODES == 5)); |
| 5275 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 5276 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5277 | &chartInstance->c1_is_MANUAL_MODES); |
| 5278 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5279 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 5280 | } else { |
| 5281 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION; |
| 5282 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5283 | &chartInstance->c1_is_MODES); |
| 5284 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5285 | (chartInstance->c1_is_MODES == 1)); |
| 5286 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5287 | (chartInstance->c1_is_MODES == 2)); |
| 5288 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5289 | (chartInstance->c1_is_MODES == 3)); |
| 5290 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5291 | (chartInstance->c1_is_MODES == 4)); |
| 5292 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5293 | (chartInstance->c1_is_MODES == 5)); |
| 5294 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 5295 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 5296 | c1_enter_atomic_ACCELERATION(chartInstance); |
| 5297 | } |
| 5298 | |
| 5299 | c1_enter_internal_ACCELERATION(chartInstance); |
| 5300 | } else { |
| 5301 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 177U, chartInstance->c1_sfEvent); |
| 5302 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 186U, chartInstance->c1_sfEvent); |
| 5303 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 185U, |
| 5304 | chartInstance->c1_sfEvent); |
| 5305 | c1_f_out = (CV_TRANSITION_EVAL(185U, (int32_T)_SFD_CCP_CALL(5U, 185U, |
| 5306 | 0, ((*chartInstance->c1_modeCom)[1] == AUTOX_MODE) != 0U, |
| 5307 | chartInstance->c1_sfEvent)) != 0); |
| 5308 | if (c1_f_out) { |
| 5309 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 185U, chartInstance->c1_sfEvent); |
| 5310 | c1_exit_internal_MANUAL_MODES(chartInstance); |
| 5311 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 5312 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5313 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5314 | (chartInstance->c1_is_MODES == 1)); |
| 5315 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5316 | (chartInstance->c1_is_MODES == 2)); |
| 5317 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5318 | (chartInstance->c1_is_MODES == 3)); |
| 5319 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5320 | (chartInstance->c1_is_MODES == 4)); |
| 5321 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5322 | (chartInstance->c1_is_MODES == 5)); |
| 5323 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 5324 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5325 | &chartInstance->c1_is_MANUAL_MODES); |
| 5326 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5327 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 5328 | } else { |
| 5329 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION_PID; |
| 5330 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5331 | &chartInstance->c1_is_MODES); |
| 5332 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5333 | (chartInstance->c1_is_MODES == 1)); |
| 5334 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5335 | (chartInstance->c1_is_MODES == 2)); |
| 5336 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5337 | (chartInstance->c1_is_MODES == 3)); |
| 5338 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5339 | (chartInstance->c1_is_MODES == 4)); |
| 5340 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5341 | (chartInstance->c1_is_MODES == 5)); |
| 5342 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 5343 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 5344 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 5345 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 5346 | &chartInstance->c1_lastAutoXCom); |
| 5347 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 5348 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 5349 | [0]; |
| 5350 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5351 | chartInstance->c1_lastModeCom); |
| 5352 | for (c1_i17 = 0; c1_i17 < 2; c1_i17++) { |
| 5353 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5354 | [c1_i17], 48U); |
| 5355 | } |
| 5356 | |
| 5357 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 5358 | [1]; |
| 5359 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5360 | chartInstance->c1_lastModeCom); |
| 5361 | for (c1_i19 = 0; c1_i19 < 2; c1_i19++) { |
| 5362 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5363 | [c1_i19], 48U); |
| 5364 | } |
| 5365 | } |
| 5366 | |
| 5367 | c1_enter_internal_ACCELERATION_PID(chartInstance); |
| 5368 | } else { |
| 5369 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 178U, chartInstance->c1_sfEvent); |
| 5370 | c1_exit_internal_MANUAL_MODES(chartInstance); |
| 5371 | chartInstance->c1_tp_MANUAL_MODES = 0U; |
| 5372 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5373 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5374 | (chartInstance->c1_is_MODES == 1)); |
| 5375 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5376 | (chartInstance->c1_is_MODES == 2)); |
| 5377 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5378 | (chartInstance->c1_is_MODES == 3)); |
| 5379 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5380 | (chartInstance->c1_is_MODES == 4)); |
| 5381 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5382 | (chartInstance->c1_is_MODES == 5)); |
| 5383 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 0); |
| 5384 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5385 | &chartInstance->c1_is_MANUAL_MODES); |
| 5386 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5387 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5388 | } else { |
| 5389 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5390 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5391 | &chartInstance->c1_is_MODES); |
| 5392 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5393 | (chartInstance->c1_is_MODES == 1)); |
| 5394 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5395 | (chartInstance->c1_is_MODES == 2)); |
| 5396 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5397 | (chartInstance->c1_is_MODES == 3)); |
| 5398 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5399 | (chartInstance->c1_is_MODES == 4)); |
| 5400 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5401 | (chartInstance->c1_is_MODES == 5)); |
| 5402 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5403 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5404 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 5405 | [0]; |
| 5406 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5407 | chartInstance->c1_lastModeCom); |
| 5408 | for (c1_i16 = 0; c1_i16 < 2; c1_i16++) { |
| 5409 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5410 | [c1_i16], 48U); |
| 5411 | } |
| 5412 | |
| 5413 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 5414 | [1]; |
| 5415 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5416 | chartInstance->c1_lastModeCom); |
| 5417 | for (c1_i18 = 0; c1_i18 < 2; c1_i18++) { |
| 5418 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5419 | [c1_i18], 48U); |
| 5420 | } |
| 5421 | |
| 5422 | c1_checkShift(chartInstance); |
| 5423 | c1_checkClutch(chartInstance); |
| 5424 | } |
| 5425 | |
| 5426 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 136U, chartInstance->c1_sfEvent); |
| 5427 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 5428 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5429 | &chartInstance->c1_is_MANUAL_MODES); |
| 5430 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5431 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5432 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5433 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5434 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 5435 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 5436 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5437 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 5438 | } |
| 5439 | } |
| 5440 | } |
| 5441 | } |
| 5442 | } else { |
| 5443 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 74U, chartInstance->c1_sfEvent); |
| 5444 | c1_checkShift(chartInstance); |
| 5445 | c1_checkClutch(chartInstance); |
| 5446 | switch (chartInstance->c1_is_MANUAL_MODES) { |
| 5447 | case c1_IN_ENDURANCE: |
| 5448 | CV_STATE_EVAL(74, 0, c1_IN_ENDURANCE); |
| 5449 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 75U, |
| 5450 | chartInstance->c1_sfEvent); |
| 5451 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 75U, chartInstance->c1_sfEvent); |
| 5452 | break; |
| 5453 | |
| 5454 | case c1_IN_SKIDPAD: |
| 5455 | CV_STATE_EVAL(74, 0, c1_IN_SKIDPAD); |
| 5456 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 76U, |
| 5457 | chartInstance->c1_sfEvent); |
| 5458 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 76U, chartInstance->c1_sfEvent); |
| 5459 | break; |
| 5460 | |
| 5461 | default: |
| 5462 | CV_STATE_EVAL(74, 0, 0); |
| 5463 | |
| 5464 | /* Unreachable state, for coverage only */ |
| 5465 | chartInstance->c1_is_MANUAL_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5466 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5467 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5468 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5469 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5470 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5471 | break; |
| 5472 | } |
| 5473 | } |
| 5474 | |
| 5475 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 74U, chartInstance->c1_sfEvent); |
| 5476 | } |
| 5477 | |
| 5478 | static void c1_exit_internal_MANUAL_MODES(SFc1_GCU_Model_genCodeInstanceStruct |
| 5479 | *chartInstance) |
| 5480 | { |
| 5481 | switch (chartInstance->c1_is_MANUAL_MODES) { |
| 5482 | case c1_IN_ENDURANCE: |
| 5483 | CV_STATE_EVAL(74, 1, c1_IN_ENDURANCE); |
| 5484 | chartInstance->c1_tp_ENDURANCE = 0U; |
| 5485 | chartInstance->c1_is_MANUAL_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5486 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5487 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5488 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5489 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5490 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5491 | break; |
| 5492 | |
| 5493 | case c1_IN_SKIDPAD: |
| 5494 | CV_STATE_EVAL(74, 1, c1_IN_SKIDPAD); |
| 5495 | if (chartInstance->c1_is_MANUAL_MODES != c1_IN_SKIDPAD) { |
| 5496 | } else { |
| 5497 | chartInstance->c1_tp_SKIDPAD = 0U; |
| 5498 | _SFD_CS_CALL(STATE_ENTER_EXIT_FUNCTION_TAG, 76U, chartInstance->c1_sfEvent); |
| 5499 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 5500 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 76U, chartInstance->c1_sfEvent); |
| 5501 | chartInstance->c1_is_MANUAL_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5502 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5503 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5504 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5505 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5506 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 5507 | } |
| 5508 | break; |
| 5509 | |
| 5510 | default: |
| 5511 | CV_STATE_EVAL(74, 1, 0); |
| 5512 | chartInstance->c1_is_MANUAL_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5513 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5514 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5515 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5516 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5517 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5518 | break; |
| 5519 | } |
| 5520 | } |
| 5521 | |
| 5522 | static void c1_INIT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 5523 | { |
| 5524 | boolean_T c1_b_out; |
| 5525 | int32_T c1_i20; |
| 5526 | boolean_T c1_covSaturation; |
| 5527 | boolean_T c1_c_out; |
| 5528 | boolean_T c1_d_out; |
| 5529 | boolean_T c1_e_out; |
| 5530 | boolean_T c1_f_out; |
| 5531 | int32_T c1_i21; |
| 5532 | int32_T c1_i22; |
| 5533 | int32_T c1_i23; |
| 5534 | int32_T c1_i24; |
| 5535 | int32_T c1_i25; |
| 5536 | int32_T c1_i26; |
| 5537 | int32_T c1_i27; |
| 5538 | int32_T c1_i28; |
| 5539 | int32_T c1_i29; |
| 5540 | int32_T c1_i30; |
| 5541 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 79U, chartInstance->c1_sfEvent); |
| 5542 | c1_b_out = (CV_TRANSITION_EVAL(79U, (int32_T)_SFD_CCP_CALL(5U, 79U, 0, |
| 5543 | (boolean_T)CV_RELATIONAL_EVAL(5U, 79U, 0, (real_T) |
| 5544 | chartInstance->c1_buzzerCounter, 1000.0, 0, 5U, |
| 5545 | chartInstance->c1_buzzerCounter >= 1000) != 0U, chartInstance->c1_sfEvent)) |
| 5546 | != 0); |
| 5547 | if (c1_b_out) { |
| 5548 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 79U, chartInstance->c1_sfEvent); |
| 5549 | sf_call_output_fcn_call(chartInstance->S, 15, "BuzzerOff", 0); |
| 5550 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 137U, |
| 5551 | chartInstance->c1_sfEvent); |
| 5552 | c1_c_out = (CV_TRANSITION_EVAL(137U, (int32_T)_SFD_CCP_CALL(5U, 137U, 0, |
| 5553 | ((*chartInstance->c1_modeCom)[1] == ENDURANCE_MODE) != 0U, |
| 5554 | chartInstance->c1_sfEvent)) != 0); |
| 5555 | if (c1_c_out) { |
| 5556 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 137U, chartInstance->c1_sfEvent); |
| 5557 | chartInstance->c1_tp_INIT = 0U; |
| 5558 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5559 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5560 | (chartInstance->c1_is_MODES == 1)); |
| 5561 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5562 | (chartInstance->c1_is_MODES == 2)); |
| 5563 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5564 | (chartInstance->c1_is_MODES == 3)); |
| 5565 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5566 | (chartInstance->c1_is_MODES == 4)); |
| 5567 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5568 | (chartInstance->c1_is_MODES == 5)); |
| 5569 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 5570 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5571 | } else { |
| 5572 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5573 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5574 | &chartInstance->c1_is_MODES); |
| 5575 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5576 | (chartInstance->c1_is_MODES == 1)); |
| 5577 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5578 | (chartInstance->c1_is_MODES == 2)); |
| 5579 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5580 | (chartInstance->c1_is_MODES == 3)); |
| 5581 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5582 | (chartInstance->c1_is_MODES == 4)); |
| 5583 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5584 | (chartInstance->c1_is_MODES == 5)); |
| 5585 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5586 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5587 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom)[0]; |
| 5588 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5589 | chartInstance->c1_lastModeCom); |
| 5590 | for (c1_i21 = 0; c1_i21 < 2; c1_i21++) { |
| 5591 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i21], |
| 5592 | 48U); |
| 5593 | } |
| 5594 | |
| 5595 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom)[1]; |
| 5596 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5597 | chartInstance->c1_lastModeCom); |
| 5598 | for (c1_i23 = 0; c1_i23 < 2; c1_i23++) { |
| 5599 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i23], |
| 5600 | 48U); |
| 5601 | } |
| 5602 | |
| 5603 | c1_checkShift(chartInstance); |
| 5604 | c1_checkClutch(chartInstance); |
| 5605 | } |
| 5606 | |
| 5607 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 5608 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5609 | &chartInstance->c1_is_MANUAL_MODES); |
| 5610 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5611 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5612 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5613 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5614 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 5615 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 5616 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5617 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 5618 | } else { |
| 5619 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 138U, chartInstance->c1_sfEvent); |
| 5620 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 139U, |
| 5621 | chartInstance->c1_sfEvent); |
| 5622 | c1_d_out = (CV_TRANSITION_EVAL(139U, (int32_T)_SFD_CCP_CALL(5U, 139U, 0, |
| 5623 | ((*chartInstance->c1_modeCom)[1] == SKIDPAD_MODE) != 0U, |
| 5624 | chartInstance->c1_sfEvent)) != 0); |
| 5625 | if (c1_d_out) { |
| 5626 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 139U, chartInstance->c1_sfEvent); |
| 5627 | chartInstance->c1_tp_INIT = 0U; |
| 5628 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5629 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5630 | (chartInstance->c1_is_MODES == 1)); |
| 5631 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5632 | (chartInstance->c1_is_MODES == 2)); |
| 5633 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5634 | (chartInstance->c1_is_MODES == 3)); |
| 5635 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5636 | (chartInstance->c1_is_MODES == 4)); |
| 5637 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5638 | (chartInstance->c1_is_MODES == 5)); |
| 5639 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 5640 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5641 | } else { |
| 5642 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5643 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5644 | &chartInstance->c1_is_MODES); |
| 5645 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5646 | (chartInstance->c1_is_MODES == 1)); |
| 5647 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5648 | (chartInstance->c1_is_MODES == 2)); |
| 5649 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5650 | (chartInstance->c1_is_MODES == 3)); |
| 5651 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5652 | (chartInstance->c1_is_MODES == 4)); |
| 5653 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5654 | (chartInstance->c1_is_MODES == 5)); |
| 5655 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5656 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5657 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom)[0]; |
| 5658 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5659 | chartInstance->c1_lastModeCom); |
| 5660 | for (c1_i22 = 0; c1_i22 < 2; c1_i22++) { |
| 5661 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5662 | [c1_i22], 48U); |
| 5663 | } |
| 5664 | |
| 5665 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom)[1]; |
| 5666 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5667 | chartInstance->c1_lastModeCom); |
| 5668 | for (c1_i24 = 0; c1_i24 < 2; c1_i24++) { |
| 5669 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5670 | [c1_i24], 48U); |
| 5671 | } |
| 5672 | |
| 5673 | c1_checkShift(chartInstance); |
| 5674 | c1_checkClutch(chartInstance); |
| 5675 | } |
| 5676 | |
| 5677 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 5678 | } else { |
| 5679 | chartInstance->c1_is_MANUAL_MODES = c1_IN_SKIDPAD; |
| 5680 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5681 | &chartInstance->c1_is_MANUAL_MODES); |
| 5682 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5683 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5684 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5685 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5686 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 3); |
| 5687 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 2); |
| 5688 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 5689 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 5690 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 5691 | } |
| 5692 | } else { |
| 5693 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 140U, chartInstance->c1_sfEvent); |
| 5694 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 141U, |
| 5695 | chartInstance->c1_sfEvent); |
| 5696 | c1_e_out = (CV_TRANSITION_EVAL(141U, (int32_T)_SFD_CCP_CALL(5U, 141U, 0, |
| 5697 | ((*chartInstance->c1_modeCom)[1] == ACCELERATION_MODE) != 0U, |
| 5698 | chartInstance->c1_sfEvent)) != 0); |
| 5699 | if (c1_e_out) { |
| 5700 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 141U, chartInstance->c1_sfEvent); |
| 5701 | chartInstance->c1_tp_INIT = 0U; |
| 5702 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5703 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5704 | (chartInstance->c1_is_MODES == 1)); |
| 5705 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5706 | (chartInstance->c1_is_MODES == 2)); |
| 5707 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5708 | (chartInstance->c1_is_MODES == 3)); |
| 5709 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5710 | (chartInstance->c1_is_MODES == 4)); |
| 5711 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5712 | (chartInstance->c1_is_MODES == 5)); |
| 5713 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 5714 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 5715 | } else { |
| 5716 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION; |
| 5717 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5718 | &chartInstance->c1_is_MODES); |
| 5719 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5720 | (chartInstance->c1_is_MODES == 1)); |
| 5721 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5722 | (chartInstance->c1_is_MODES == 2)); |
| 5723 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5724 | (chartInstance->c1_is_MODES == 3)); |
| 5725 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5726 | (chartInstance->c1_is_MODES == 4)); |
| 5727 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5728 | (chartInstance->c1_is_MODES == 5)); |
| 5729 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 5730 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 5731 | chartInstance->c1_lastAacCom = (*chartInstance->c1_aacCom)[0]; |
| 5732 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 5733 | &chartInstance->c1_lastAacCom); |
| 5734 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 5735 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom)[0]; |
| 5736 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5737 | chartInstance->c1_lastModeCom); |
| 5738 | for (c1_i25 = 0; c1_i25 < 2; c1_i25++) { |
| 5739 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5740 | [c1_i25], 48U); |
| 5741 | } |
| 5742 | |
| 5743 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom)[1]; |
| 5744 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5745 | chartInstance->c1_lastModeCom); |
| 5746 | for (c1_i28 = 0; c1_i28 < 2; c1_i28++) { |
| 5747 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5748 | [c1_i28], 48U); |
| 5749 | } |
| 5750 | } |
| 5751 | |
| 5752 | c1_enter_internal_ACCELERATION(chartInstance); |
| 5753 | } else { |
| 5754 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 177U, chartInstance->c1_sfEvent); |
| 5755 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 186U, chartInstance->c1_sfEvent); |
| 5756 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 185U, |
| 5757 | chartInstance->c1_sfEvent); |
| 5758 | c1_f_out = (CV_TRANSITION_EVAL(185U, (int32_T)_SFD_CCP_CALL(5U, 185U, |
| 5759 | 0, ((*chartInstance->c1_modeCom)[1] == AUTOX_MODE) != 0U, |
| 5760 | chartInstance->c1_sfEvent)) != 0); |
| 5761 | if (c1_f_out) { |
| 5762 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 185U, chartInstance->c1_sfEvent); |
| 5763 | chartInstance->c1_tp_INIT = 0U; |
| 5764 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5765 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5766 | (chartInstance->c1_is_MODES == 1)); |
| 5767 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5768 | (chartInstance->c1_is_MODES == 2)); |
| 5769 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5770 | (chartInstance->c1_is_MODES == 3)); |
| 5771 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5772 | (chartInstance->c1_is_MODES == 4)); |
| 5773 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5774 | (chartInstance->c1_is_MODES == 5)); |
| 5775 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 5776 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 5777 | } else { |
| 5778 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION_PID; |
| 5779 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5780 | &chartInstance->c1_is_MODES); |
| 5781 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5782 | (chartInstance->c1_is_MODES == 1)); |
| 5783 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5784 | (chartInstance->c1_is_MODES == 2)); |
| 5785 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5786 | (chartInstance->c1_is_MODES == 3)); |
| 5787 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5788 | (chartInstance->c1_is_MODES == 4)); |
| 5789 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5790 | (chartInstance->c1_is_MODES == 5)); |
| 5791 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 5792 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 5793 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 5794 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 5795 | &chartInstance->c1_lastAutoXCom); |
| 5796 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 5797 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 5798 | [0]; |
| 5799 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5800 | chartInstance->c1_lastModeCom); |
| 5801 | for (c1_i27 = 0; c1_i27 < 2; c1_i27++) { |
| 5802 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5803 | [c1_i27], 48U); |
| 5804 | } |
| 5805 | |
| 5806 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 5807 | [1]; |
| 5808 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5809 | chartInstance->c1_lastModeCom); |
| 5810 | for (c1_i30 = 0; c1_i30 < 2; c1_i30++) { |
| 5811 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5812 | [c1_i30], 48U); |
| 5813 | } |
| 5814 | } |
| 5815 | |
| 5816 | c1_enter_internal_ACCELERATION_PID(chartInstance); |
| 5817 | } else { |
| 5818 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 178U, chartInstance->c1_sfEvent); |
| 5819 | chartInstance->c1_tp_INIT = 0U; |
| 5820 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 5821 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5822 | (chartInstance->c1_is_MODES == 1)); |
| 5823 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5824 | (chartInstance->c1_is_MODES == 2)); |
| 5825 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5826 | (chartInstance->c1_is_MODES == 3)); |
| 5827 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5828 | (chartInstance->c1_is_MODES == 4)); |
| 5829 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5830 | (chartInstance->c1_is_MODES == 5)); |
| 5831 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 5832 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 5833 | } else { |
| 5834 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 5835 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 5836 | &chartInstance->c1_is_MODES); |
| 5837 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 5838 | (chartInstance->c1_is_MODES == 1)); |
| 5839 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 5840 | (chartInstance->c1_is_MODES == 2)); |
| 5841 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 5842 | (chartInstance->c1_is_MODES == 3)); |
| 5843 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 5844 | (chartInstance->c1_is_MODES == 4)); |
| 5845 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 5846 | (chartInstance->c1_is_MODES == 5)); |
| 5847 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 5848 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 5849 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 5850 | [0]; |
| 5851 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5852 | chartInstance->c1_lastModeCom); |
| 5853 | for (c1_i26 = 0; c1_i26 < 2; c1_i26++) { |
| 5854 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5855 | [c1_i26], 48U); |
| 5856 | } |
| 5857 | |
| 5858 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 5859 | [1]; |
| 5860 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5861 | chartInstance->c1_lastModeCom); |
| 5862 | for (c1_i29 = 0; c1_i29 < 2; c1_i29++) { |
| 5863 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 5864 | [c1_i29], 48U); |
| 5865 | } |
| 5866 | |
| 5867 | c1_checkShift(chartInstance); |
| 5868 | c1_checkClutch(chartInstance); |
| 5869 | } |
| 5870 | |
| 5871 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 136U, chartInstance->c1_sfEvent); |
| 5872 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 5873 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 5874 | &chartInstance->c1_is_MANUAL_MODES); |
| 5875 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 5876 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 5877 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 5878 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 5879 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 5880 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 5881 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 5882 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 5883 | } |
| 5884 | } |
| 5885 | } |
| 5886 | } |
| 5887 | } else { |
| 5888 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 73U, chartInstance->c1_sfEvent); |
| 5889 | c1_i20 = c1__s32_add__(chartInstance, (int32_T) |
| 5890 | chartInstance->c1_buzzerCounter, 1, 429U, 38, 15); |
| 5891 | c1_covSaturation = false; |
| 5892 | if (c1_i20 < 0) { |
| 5893 | c1_covSaturation = true; |
| 5894 | c1_i20 = 0; |
| 5895 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 429U, 38U, 15U); |
| 5896 | } else { |
| 5897 | if (c1_i20 > 65535) { |
| 5898 | c1_i20 = 65535; |
| 5899 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 429U, 38U, 15U); |
| 5900 | } |
| 5901 | |
| 5902 | CV_SATURATION_EVAL(4, 73, 0, 0, c1_covSaturation); |
| 5903 | } |
| 5904 | |
| 5905 | chartInstance->c1_buzzerCounter = (uint16_T)c1_i20; |
| 5906 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 34, 1063U, (void *) |
| 5907 | &chartInstance->c1_buzzerCounter); |
| 5908 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_buzzerCounter, 0U); |
| 5909 | } |
| 5910 | |
| 5911 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 73U, chartInstance->c1_sfEvent); |
| 5912 | } |
| 5913 | |
| 5914 | static void c1_enter_atomic_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct |
| 5915 | *chartInstance) |
| 5916 | { |
| 5917 | int32_T c1_i31; |
| 5918 | int32_T c1_i32; |
| 5919 | chartInstance->c1_lastAacCom = (*chartInstance->c1_aacCom)[0]; |
| 5920 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 5921 | &chartInstance->c1_lastAacCom); |
| 5922 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 5923 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom)[0]; |
| 5924 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5925 | chartInstance->c1_lastModeCom); |
| 5926 | for (c1_i31 = 0; c1_i31 < 2; c1_i31++) { |
| 5927 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i31], 48U); |
| 5928 | } |
| 5929 | |
| 5930 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom)[1]; |
| 5931 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 5932 | chartInstance->c1_lastModeCom); |
| 5933 | for (c1_i32 = 0; c1_i32 < 2; c1_i32++) { |
| 5934 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom)[c1_i32], 48U); |
| 5935 | } |
| 5936 | } |
| 5937 | |
| 5938 | static void c1_enter_internal_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct * |
| 5939 | chartInstance) |
| 5940 | { |
| 5941 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 142U, chartInstance->c1_sfEvent); |
| 5942 | if (chartInstance->c1_is_ACCELERATION == c1_IN_DEFAULT) { |
| 5943 | } else { |
| 5944 | chartInstance->c1_is_ACCELERATION = c1_IN_DEFAULT; |
| 5945 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 5946 | &chartInstance->c1_is_ACCELERATION); |
| 5947 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 5948 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 5949 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 5950 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 5951 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 4); |
| 5952 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 1); |
| 5953 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 5954 | chartInstance->c1_tp_DEFAULT = 1U; |
| 5955 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 5956 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 5957 | chartInstance->c1_stateFb); |
| 5958 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 5959 | c1_checkShift(chartInstance); |
| 5960 | c1_checkClutch(chartInstance); |
| 5961 | } |
| 5962 | } |
| 5963 | |
| 5964 | static void c1_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 5965 | { |
| 5966 | boolean_T c1_temp; |
| 5967 | boolean_T c1_b_out; |
| 5968 | boolean_T c1_c_out; |
| 5969 | boolean_T c1_d_out; |
| 5970 | boolean_T c1_e_out; |
| 5971 | boolean_T c1_f_out; |
| 5972 | int32_T c1_i33; |
| 5973 | int32_T c1_i34; |
| 5974 | int32_T c1_i35; |
| 5975 | int32_T c1_i36; |
| 5976 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 144U, chartInstance->c1_sfEvent); |
| 5977 | c1_temp = _SFD_CCP_CALL(5U, 144U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 144U, 0, |
| 5978 | (real_T)(*chartInstance->c1_modeCom)[0], (real_T) |
| 5979 | (*chartInstance->c1_lastModeCom)[0], 0, 1U, (*chartInstance->c1_modeCom)[0] |
| 5980 | != (*chartInstance->c1_lastModeCom)[0]) != 0U, chartInstance->c1_sfEvent); |
| 5981 | if (c1_temp) { |
| 5982 | c1_temp = _SFD_CCP_CALL(5U, 144U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, 144U, |
| 5983 | 1, (real_T)(*chartInstance->c1_modeCom)[1], (real_T) |
| 5984 | (*chartInstance->c1_lastModeCom)[1], 0, 1U, (*chartInstance->c1_modeCom)[1] |
| 5985 | != (*chartInstance->c1_lastModeCom)[1]) != 0U, chartInstance->c1_sfEvent); |
| 5986 | } |
| 5987 | |
| 5988 | c1_b_out = (CV_TRANSITION_EVAL(144U, (int32_T)c1_temp) != 0); |
| 5989 | if (c1_b_out) { |
| 5990 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 144U, chartInstance->c1_sfEvent); |
| 5991 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 5992 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 5993 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 5994 | chartInstance->c1_stateFb); |
| 5995 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 5996 | c1_Clutch_setValue(chartInstance, 0U); |
| 5997 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 145U, chartInstance->c1_sfEvent); |
| 5998 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 137U, |
| 5999 | chartInstance->c1_sfEvent); |
| 6000 | c1_c_out = (CV_TRANSITION_EVAL(137U, (int32_T)_SFD_CCP_CALL(5U, 137U, 0, |
| 6001 | ((*chartInstance->c1_modeCom)[1] == ENDURANCE_MODE) != 0U, |
| 6002 | chartInstance->c1_sfEvent)) != 0); |
| 6003 | if (c1_c_out) { |
| 6004 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 137U, chartInstance->c1_sfEvent); |
| 6005 | c1_exit_internal_ACCELERATION(chartInstance); |
| 6006 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 6007 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 6008 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6009 | (chartInstance->c1_is_MODES == 1)); |
| 6010 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6011 | (chartInstance->c1_is_MODES == 2)); |
| 6012 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6013 | (chartInstance->c1_is_MODES == 3)); |
| 6014 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6015 | (chartInstance->c1_is_MODES == 4)); |
| 6016 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6017 | (chartInstance->c1_is_MODES == 5)); |
| 6018 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 6019 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6020 | &chartInstance->c1_is_ACCELERATION); |
| 6021 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6022 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 6023 | } else { |
| 6024 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 6025 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 6026 | &chartInstance->c1_is_MODES); |
| 6027 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6028 | (chartInstance->c1_is_MODES == 1)); |
| 6029 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6030 | (chartInstance->c1_is_MODES == 2)); |
| 6031 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6032 | (chartInstance->c1_is_MODES == 3)); |
| 6033 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6034 | (chartInstance->c1_is_MODES == 4)); |
| 6035 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6036 | (chartInstance->c1_is_MODES == 5)); |
| 6037 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 6038 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 6039 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 6040 | } |
| 6041 | |
| 6042 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 6043 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 6044 | &chartInstance->c1_is_MANUAL_MODES); |
| 6045 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 6046 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 6047 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 6048 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 6049 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 6050 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 6051 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 6052 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 6053 | } else { |
| 6054 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 138U, chartInstance->c1_sfEvent); |
| 6055 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 139U, |
| 6056 | chartInstance->c1_sfEvent); |
| 6057 | c1_d_out = (CV_TRANSITION_EVAL(139U, (int32_T)_SFD_CCP_CALL(5U, 139U, 0, |
| 6058 | ((*chartInstance->c1_modeCom)[1] == SKIDPAD_MODE) != 0U, |
| 6059 | chartInstance->c1_sfEvent)) != 0); |
| 6060 | if (c1_d_out) { |
| 6061 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 139U, chartInstance->c1_sfEvent); |
| 6062 | c1_exit_internal_ACCELERATION(chartInstance); |
| 6063 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 6064 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 6065 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6066 | (chartInstance->c1_is_MODES == 1)); |
| 6067 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6068 | (chartInstance->c1_is_MODES == 2)); |
| 6069 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6070 | (chartInstance->c1_is_MODES == 3)); |
| 6071 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6072 | (chartInstance->c1_is_MODES == 4)); |
| 6073 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6074 | (chartInstance->c1_is_MODES == 5)); |
| 6075 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 6076 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6077 | &chartInstance->c1_is_ACCELERATION); |
| 6078 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6079 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 6080 | } else { |
| 6081 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 6082 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 6083 | &chartInstance->c1_is_MODES); |
| 6084 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6085 | (chartInstance->c1_is_MODES == 1)); |
| 6086 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6087 | (chartInstance->c1_is_MODES == 2)); |
| 6088 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6089 | (chartInstance->c1_is_MODES == 3)); |
| 6090 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6091 | (chartInstance->c1_is_MODES == 4)); |
| 6092 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6093 | (chartInstance->c1_is_MODES == 5)); |
| 6094 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 6095 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 6096 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 6097 | } |
| 6098 | |
| 6099 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 6100 | } else { |
| 6101 | chartInstance->c1_is_MANUAL_MODES = c1_IN_SKIDPAD; |
| 6102 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 6103 | &chartInstance->c1_is_MANUAL_MODES); |
| 6104 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 6105 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 6106 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 6107 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 6108 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 3); |
| 6109 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 2); |
| 6110 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 6111 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 6112 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 6113 | } |
| 6114 | } else { |
| 6115 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 140U, chartInstance->c1_sfEvent); |
| 6116 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 141U, |
| 6117 | chartInstance->c1_sfEvent); |
| 6118 | c1_e_out = (CV_TRANSITION_EVAL(141U, (int32_T)_SFD_CCP_CALL(5U, 141U, 0, |
| 6119 | ((*chartInstance->c1_modeCom)[1] == ACCELERATION_MODE) != 0U, |
| 6120 | chartInstance->c1_sfEvent)) != 0); |
| 6121 | if (c1_e_out) { |
| 6122 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 141U, chartInstance->c1_sfEvent); |
| 6123 | c1_exit_internal_ACCELERATION(chartInstance); |
| 6124 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 6125 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 6126 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6127 | (chartInstance->c1_is_MODES == 1)); |
| 6128 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6129 | (chartInstance->c1_is_MODES == 2)); |
| 6130 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6131 | (chartInstance->c1_is_MODES == 3)); |
| 6132 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6133 | (chartInstance->c1_is_MODES == 4)); |
| 6134 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6135 | (chartInstance->c1_is_MODES == 5)); |
| 6136 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 6137 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6138 | &chartInstance->c1_is_ACCELERATION); |
| 6139 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6140 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 6141 | } else { |
| 6142 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION; |
| 6143 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 6144 | &chartInstance->c1_is_MODES); |
| 6145 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6146 | (chartInstance->c1_is_MODES == 1)); |
| 6147 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6148 | (chartInstance->c1_is_MODES == 2)); |
| 6149 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6150 | (chartInstance->c1_is_MODES == 3)); |
| 6151 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6152 | (chartInstance->c1_is_MODES == 4)); |
| 6153 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6154 | (chartInstance->c1_is_MODES == 5)); |
| 6155 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6156 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 6157 | c1_enter_atomic_ACCELERATION(chartInstance); |
| 6158 | } |
| 6159 | |
| 6160 | c1_enter_internal_ACCELERATION(chartInstance); |
| 6161 | } else { |
| 6162 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 177U, chartInstance->c1_sfEvent); |
| 6163 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 186U, chartInstance->c1_sfEvent); |
| 6164 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 185U, |
| 6165 | chartInstance->c1_sfEvent); |
| 6166 | c1_f_out = (CV_TRANSITION_EVAL(185U, (int32_T)_SFD_CCP_CALL(5U, 185U, |
| 6167 | 0, ((*chartInstance->c1_modeCom)[1] == AUTOX_MODE) != 0U, |
| 6168 | chartInstance->c1_sfEvent)) != 0); |
| 6169 | if (c1_f_out) { |
| 6170 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 185U, chartInstance->c1_sfEvent); |
| 6171 | c1_exit_internal_ACCELERATION(chartInstance); |
| 6172 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 6173 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 6174 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6175 | (chartInstance->c1_is_MODES == 1)); |
| 6176 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6177 | (chartInstance->c1_is_MODES == 2)); |
| 6178 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6179 | (chartInstance->c1_is_MODES == 3)); |
| 6180 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6181 | (chartInstance->c1_is_MODES == 4)); |
| 6182 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6183 | (chartInstance->c1_is_MODES == 5)); |
| 6184 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 6185 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6186 | &chartInstance->c1_is_ACCELERATION); |
| 6187 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6188 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 6189 | } else { |
| 6190 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION_PID; |
| 6191 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 6192 | &chartInstance->c1_is_MODES); |
| 6193 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6194 | (chartInstance->c1_is_MODES == 1)); |
| 6195 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6196 | (chartInstance->c1_is_MODES == 2)); |
| 6197 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6198 | (chartInstance->c1_is_MODES == 3)); |
| 6199 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6200 | (chartInstance->c1_is_MODES == 4)); |
| 6201 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6202 | (chartInstance->c1_is_MODES == 5)); |
| 6203 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 6204 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 6205 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 6206 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 6207 | &chartInstance->c1_lastAutoXCom); |
| 6208 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 6209 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 6210 | [0]; |
| 6211 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 6212 | chartInstance->c1_lastModeCom); |
| 6213 | for (c1_i34 = 0; c1_i34 < 2; c1_i34++) { |
| 6214 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 6215 | [c1_i34], 48U); |
| 6216 | } |
| 6217 | |
| 6218 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 6219 | [1]; |
| 6220 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 6221 | chartInstance->c1_lastModeCom); |
| 6222 | for (c1_i36 = 0; c1_i36 < 2; c1_i36++) { |
| 6223 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 6224 | [c1_i36], 48U); |
| 6225 | } |
| 6226 | } |
| 6227 | |
| 6228 | c1_enter_internal_ACCELERATION_PID(chartInstance); |
| 6229 | } else { |
| 6230 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 178U, chartInstance->c1_sfEvent); |
| 6231 | c1_exit_internal_ACCELERATION(chartInstance); |
| 6232 | chartInstance->c1_tp_ACCELERATION = 0U; |
| 6233 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 6234 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6235 | (chartInstance->c1_is_MODES == 1)); |
| 6236 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6237 | (chartInstance->c1_is_MODES == 2)); |
| 6238 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6239 | (chartInstance->c1_is_MODES == 3)); |
| 6240 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6241 | (chartInstance->c1_is_MODES == 4)); |
| 6242 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6243 | (chartInstance->c1_is_MODES == 5)); |
| 6244 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 0); |
| 6245 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6246 | &chartInstance->c1_is_ACCELERATION); |
| 6247 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 6248 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 6249 | } else { |
| 6250 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 6251 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 6252 | &chartInstance->c1_is_MODES); |
| 6253 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 6254 | (chartInstance->c1_is_MODES == 1)); |
| 6255 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 6256 | (chartInstance->c1_is_MODES == 2)); |
| 6257 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 6258 | (chartInstance->c1_is_MODES == 3)); |
| 6259 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 6260 | (chartInstance->c1_is_MODES == 4)); |
| 6261 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 6262 | (chartInstance->c1_is_MODES == 5)); |
| 6263 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 6264 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 6265 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 6266 | [0]; |
| 6267 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 6268 | chartInstance->c1_lastModeCom); |
| 6269 | for (c1_i33 = 0; c1_i33 < 2; c1_i33++) { |
| 6270 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 6271 | [c1_i33], 48U); |
| 6272 | } |
| 6273 | |
| 6274 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 6275 | [1]; |
| 6276 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 6277 | chartInstance->c1_lastModeCom); |
| 6278 | for (c1_i35 = 0; c1_i35 < 2; c1_i35++) { |
| 6279 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 6280 | [c1_i35], 48U); |
| 6281 | } |
| 6282 | |
| 6283 | c1_checkShift(chartInstance); |
| 6284 | c1_checkClutch(chartInstance); |
| 6285 | } |
| 6286 | |
| 6287 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 136U, chartInstance->c1_sfEvent); |
| 6288 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 6289 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 6290 | &chartInstance->c1_is_MANUAL_MODES); |
| 6291 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 6292 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 6293 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 6294 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 6295 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 6296 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 6297 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 6298 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 6299 | } |
| 6300 | } |
| 6301 | } |
| 6302 | } |
| 6303 | } else { |
| 6304 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 36U, chartInstance->c1_sfEvent); |
| 6305 | switch (chartInstance->c1_is_ACCELERATION) { |
| 6306 | case c1_IN_ACC: |
| 6307 | CV_STATE_EVAL(36, 0, c1_IN_ACC); |
| 6308 | c1_ACC(chartInstance); |
| 6309 | break; |
| 6310 | |
| 6311 | case c1_IN_DEFAULT: |
| 6312 | CV_STATE_EVAL(36, 0, c1_IN_DEFAULT); |
| 6313 | c1_DEFAULT(chartInstance); |
| 6314 | break; |
| 6315 | |
| 6316 | default: |
| 6317 | CV_STATE_EVAL(36, 0, 0); |
| 6318 | |
| 6319 | /* Unreachable state, for coverage only */ |
| 6320 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 6321 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6322 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6323 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6324 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6325 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 6326 | break; |
| 6327 | } |
| 6328 | } |
| 6329 | |
| 6330 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 36U, chartInstance->c1_sfEvent); |
| 6331 | } |
| 6332 | |
| 6333 | static void c1_exit_internal_ACCELERATION(SFc1_GCU_Model_genCodeInstanceStruct |
| 6334 | *chartInstance) |
| 6335 | { |
| 6336 | switch (chartInstance->c1_is_ACCELERATION) { |
| 6337 | case c1_IN_ACC: |
| 6338 | CV_STATE_EVAL(36, 1, c1_IN_ACC); |
| 6339 | switch (chartInstance->c1_is_ACC) { |
| 6340 | case c1_IN_ACTIVE: |
| 6341 | CV_STATE_EVAL(37, 1, c1_IN_ACTIVE); |
| 6342 | c1_exit_internal_ACTIVE(chartInstance); |
| 6343 | chartInstance->c1_tp_ACTIVE = 0U; |
| 6344 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6345 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6346 | (chartInstance->c1_is_ACC == 1)); |
| 6347 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6348 | (chartInstance->c1_is_ACC == 2)); |
| 6349 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 0); |
| 6350 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 6351 | &chartInstance->c1_is_ACTIVE); |
| 6352 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 6353 | break; |
| 6354 | |
| 6355 | case c1_IN_STOPPING: |
| 6356 | CV_STATE_EVAL(37, 1, c1_IN_STOPPING); |
| 6357 | chartInstance->c1_tp_STOPPING = 0U; |
| 6358 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6359 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6360 | (chartInstance->c1_is_ACC == 1)); |
| 6361 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6362 | (chartInstance->c1_is_ACC == 2)); |
| 6363 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 6364 | break; |
| 6365 | |
| 6366 | default: |
| 6367 | CV_STATE_EVAL(37, 1, 0); |
| 6368 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6369 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6370 | (chartInstance->c1_is_ACC == 1)); |
| 6371 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6372 | (chartInstance->c1_is_ACC == 2)); |
| 6373 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 6374 | break; |
| 6375 | } |
| 6376 | |
| 6377 | chartInstance->c1_tp_ACC = 0U; |
| 6378 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 6379 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6380 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6381 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6382 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6383 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 0); |
| 6384 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 6385 | &chartInstance->c1_is_ACC); |
| 6386 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 6387 | break; |
| 6388 | |
| 6389 | case c1_IN_DEFAULT: |
| 6390 | CV_STATE_EVAL(36, 1, c1_IN_DEFAULT); |
| 6391 | chartInstance->c1_tp_DEFAULT = 0U; |
| 6392 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 6393 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6394 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6395 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6396 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6397 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 6398 | break; |
| 6399 | |
| 6400 | default: |
| 6401 | CV_STATE_EVAL(36, 1, 0); |
| 6402 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 6403 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6404 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6405 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6406 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6407 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 6408 | break; |
| 6409 | } |
| 6410 | } |
| 6411 | |
| 6412 | static void c1_ACC(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 6413 | { |
| 6414 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 37U, chartInstance->c1_sfEvent); |
| 6415 | switch (chartInstance->c1_is_ACC) { |
| 6416 | case c1_IN_ACTIVE: |
| 6417 | CV_STATE_EVAL(37, 0, c1_IN_ACTIVE); |
| 6418 | c1_ACTIVE(chartInstance); |
| 6419 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 37U, chartInstance->c1_sfEvent); |
| 6420 | break; |
| 6421 | |
| 6422 | case c1_IN_STOPPING: |
| 6423 | CV_STATE_EVAL(37, 0, c1_IN_STOPPING); |
| 6424 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 120U, chartInstance->c1_sfEvent); |
| 6425 | chartInstance->c1_tp_STOPPING = 0U; |
| 6426 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6427 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6428 | (chartInstance->c1_is_ACC == 1)); |
| 6429 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6430 | (chartInstance->c1_is_ACC == 2)); |
| 6431 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 6432 | chartInstance->c1_tp_ACC = 0U; |
| 6433 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 6434 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6435 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6436 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6437 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6438 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 0); |
| 6439 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 6440 | &chartInstance->c1_is_ACC); |
| 6441 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 6442 | if (chartInstance->c1_is_ACCELERATION == c1_IN_DEFAULT) { |
| 6443 | } else { |
| 6444 | chartInstance->c1_is_ACCELERATION = c1_IN_DEFAULT; |
| 6445 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 6446 | &chartInstance->c1_is_ACCELERATION); |
| 6447 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 6448 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 6449 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 6450 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 6451 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 4); |
| 6452 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 1); |
| 6453 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 6454 | chartInstance->c1_tp_DEFAULT = 1U; |
| 6455 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 6456 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 6457 | chartInstance->c1_stateFb); |
| 6458 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 6459 | c1_checkShift(chartInstance); |
| 6460 | c1_checkClutch(chartInstance); |
| 6461 | } |
| 6462 | |
| 6463 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 45U, chartInstance->c1_sfEvent); |
| 6464 | if (chartInstance->c1_is_ACCELERATION != c1_IN_ACC) { |
| 6465 | } else { |
| 6466 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 37U, chartInstance->c1_sfEvent); |
| 6467 | } |
| 6468 | break; |
| 6469 | |
| 6470 | default: |
| 6471 | CV_STATE_EVAL(37, 0, 0); |
| 6472 | |
| 6473 | /* Unreachable state, for coverage only */ |
| 6474 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6475 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6476 | (chartInstance->c1_is_ACC == 1)); |
| 6477 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6478 | (chartInstance->c1_is_ACC == 2)); |
| 6479 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 6480 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 37U, chartInstance->c1_sfEvent); |
| 6481 | break; |
| 6482 | } |
| 6483 | } |
| 6484 | |
| 6485 | static void c1_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 6486 | { |
| 6487 | boolean_T c1_temp; |
| 6488 | boolean_T c1_b_out; |
| 6489 | boolean_T c1_c_out; |
| 6490 | int32_T c1_i37; |
| 6491 | uint16_T c1_u0; |
| 6492 | boolean_T c1_b_temp; |
| 6493 | int32_T c1_i38; |
| 6494 | boolean_T c1_covSaturation; |
| 6495 | boolean_T c1_c_temp; |
| 6496 | boolean_T c1_d_out; |
| 6497 | boolean_T c1_d_temp; |
| 6498 | int32_T c1_i39; |
| 6499 | boolean_T c1_e_out; |
| 6500 | real_T c1_d0; |
| 6501 | boolean_T c1_b_covSaturation; |
| 6502 | uint8_T c1_u1; |
| 6503 | int32_T c1_q0; |
| 6504 | int32_T c1_q1; |
| 6505 | boolean_T c1_c_covSaturation; |
| 6506 | int32_T c1_qY; |
| 6507 | int64_T c1_i40; |
| 6508 | boolean_T c1_d_covSaturation; |
| 6509 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 100U, chartInstance->c1_sfEvent); |
| 6510 | c1_temp = _SFD_CCP_CALL(5U, 100U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 100U, 0, |
| 6511 | (real_T)(*chartInstance->c1_aacCom)[0], (real_T)chartInstance->c1_lastAacCom, |
| 6512 | 0, 1U, (*chartInstance->c1_aacCom)[0] != chartInstance->c1_lastAacCom) != 0U, |
| 6513 | chartInstance->c1_sfEvent); |
| 6514 | if (c1_temp) { |
| 6515 | c1_temp = _SFD_CCP_CALL(5U, 100U, 1, ((*chartInstance->c1_aacCom)[1] == |
| 6516 | ACC_OFF) != 0U, chartInstance->c1_sfEvent); |
| 6517 | } |
| 6518 | |
| 6519 | c1_b_out = (CV_TRANSITION_EVAL(100U, (int32_T)c1_temp) != 0); |
| 6520 | if (c1_b_out) { |
| 6521 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 100U, chartInstance->c1_sfEvent); |
| 6522 | chartInstance->c1_lastAacCom = (*chartInstance->c1_aacCom)[0]; |
| 6523 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 6524 | &chartInstance->c1_lastAacCom); |
| 6525 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 6526 | c1_u0 = chartInstance->c1_lastAacCom; |
| 6527 | sf_mex_printf("%s =\\n", "lastAacCom"); |
| 6528 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u0); |
| 6529 | c1_exit_internal_ACTIVE(chartInstance); |
| 6530 | chartInstance->c1_tp_ACTIVE = 0U; |
| 6531 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6532 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6533 | (chartInstance->c1_is_ACC == 1)); |
| 6534 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6535 | (chartInstance->c1_is_ACC == 2)); |
| 6536 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 0); |
| 6537 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 6538 | &chartInstance->c1_is_ACTIVE); |
| 6539 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 6540 | if (chartInstance->c1_is_ACC == c1_IN_STOPPING) { |
| 6541 | } else { |
| 6542 | chartInstance->c1_is_ACC = c1_IN_STOPPING; |
| 6543 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 6544 | &chartInstance->c1_is_ACC); |
| 6545 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6546 | (chartInstance->c1_is_ACC == 1)); |
| 6547 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6548 | (chartInstance->c1_is_ACC == 2)); |
| 6549 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 6550 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 7); |
| 6551 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 6); |
| 6552 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 6553 | chartInstance->c1_tp_STOPPING = 1U; |
| 6554 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 6555 | c1_Clutch_setValue(chartInstance, 0U); |
| 6556 | } |
| 6557 | |
| 6558 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6559 | } else { |
| 6560 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6561 | switch (chartInstance->c1_is_ACTIVE) { |
| 6562 | case c1_IN_READY: |
| 6563 | CV_STATE_EVAL(38, 0, c1_IN_READY); |
| 6564 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 106U, |
| 6565 | chartInstance->c1_sfEvent); |
| 6566 | c1_c_out = (CV_TRANSITION_EVAL(106U, (int32_T)_SFD_CCP_CALL(5U, 106U, 0, |
| 6567 | (boolean_T)CV_RELATIONAL_EVAL(5U, 106U, 0, (real_T) |
| 6568 | chartInstance->c1_aacCounter, 1.0, 0, 3U, chartInstance->c1_aacCounter <= |
| 6569 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 6570 | if (c1_c_out) { |
| 6571 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 106U, chartInstance->c1_sfEvent); |
| 6572 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 101U, |
| 6573 | chartInstance->c1_sfEvent); |
| 6574 | c1_c_temp = _SFD_CCP_CALL(5U, 101U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 6575 | 101U, 0, (real_T)(*chartInstance->c1_aacCom)[0], (real_T) |
| 6576 | chartInstance->c1_lastAacCom, 0, 1U, (*chartInstance->c1_aacCom)[0] != |
| 6577 | chartInstance->c1_lastAacCom) != 0U, chartInstance->c1_sfEvent); |
| 6578 | if (c1_c_temp) { |
| 6579 | c1_c_temp = _SFD_CCP_CALL(5U, 101U, 1, ((*chartInstance->c1_aacCom)[1] |
| 6580 | == ACC_GO) != 0U, chartInstance->c1_sfEvent); |
| 6581 | } |
| 6582 | |
| 6583 | c1_d_temp = c1_c_temp; |
| 6584 | if (c1_d_temp) { |
| 6585 | c1_i39 = c1_getAacParam(chartInstance, acc_params_TPS_START_LIMIT); |
| 6586 | c1_d_temp = _SFD_CCP_CALL(5U, 101U, 2, (boolean_T)CV_RELATIONAL_EVAL |
| 6587 | (5U, 101U, 1, (real_T)*chartInstance->c1_currTps, (real_T)c1_i39, 0, |
| 6588 | 5U, *chartInstance->c1_currTps >= c1_i39) != 0U, |
| 6589 | chartInstance->c1_sfEvent); |
| 6590 | } |
| 6591 | |
| 6592 | c1_e_out = (CV_TRANSITION_EVAL(101U, (int32_T)c1_d_temp) != 0); |
| 6593 | if (c1_e_out) { |
| 6594 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 101U, chartInstance->c1_sfEvent); |
| 6595 | chartInstance->c1_lastAacCom = (*chartInstance->c1_aacCom)[0]; |
| 6596 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 6597 | &chartInstance->c1_lastAacCom); |
| 6598 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 6599 | chartInstance->c1_tp_READY = 0U; |
| 6600 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6601 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6602 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6603 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6604 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6605 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6606 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6607 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6608 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6609 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6610 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6611 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6612 | if (chartInstance->c1_is_ACTIVE == c1_IN_START_RELEASE) { |
| 6613 | } else { |
| 6614 | chartInstance->c1_is_ACTIVE = c1_IN_START_RELEASE; |
| 6615 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 6616 | &chartInstance->c1_is_ACTIVE); |
| 6617 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6618 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6619 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6620 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6621 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6622 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6623 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6624 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6625 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6626 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6627 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 21); |
| 6628 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 4); |
| 6629 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 3); |
| 6630 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 3); |
| 6631 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 6632 | chartInstance->c1_tp_START_RELEASE = 1U; |
| 6633 | *chartInstance->c1_stateFb = (uint16_T)ACC_GO; |
| 6634 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 6635 | chartInstance->c1_stateFb); |
| 6636 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 6637 | chartInstance->c1_aac_clutchValue = (real_T)c1_getAacParam |
| 6638 | (chartInstance, acc_params_RAMP_START); |
| 6639 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 45, 561U, (void *) |
| 6640 | &chartInstance->c1_aac_clutchValue); |
| 6641 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchValue, 6U); |
| 6642 | c1_d0 = chartInstance->c1_aac_clutchValue; |
| 6643 | c1_b_covSaturation = false; |
| 6644 | if (c1_d0 < 256.0) { |
| 6645 | if (c1_d0 >= 0.0) { |
| 6646 | c1_u1 = (uint8_T)c1_d0; |
| 6647 | } else { |
| 6648 | c1_b_covSaturation = true; |
| 6649 | c1_u1 = 0U; |
| 6650 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 120U, 5U); |
| 6651 | } |
| 6652 | } else if (c1_d0 >= 256.0) { |
| 6653 | c1_b_covSaturation = true; |
| 6654 | c1_u1 = MAX_uint8_T; |
| 6655 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 120U, 5U); |
| 6656 | } else { |
| 6657 | c1_u1 = 0U; |
| 6658 | } |
| 6659 | |
| 6660 | CV_SATURATION_EVAL(4, 43, 0, 0, c1_b_covSaturation); |
| 6661 | c1_Clutch_setValue(chartInstance, c1_u1); |
| 6662 | chartInstance->c1_aac_dtRelease = c1_div_nzp_s32(chartInstance, |
| 6663 | c1_getAacParam(chartInstance, acc_params_RAMP_TIME), (int32_T) |
| 6664 | c1_const_AAC_WORK_RATE_ms, 547U, 196, 1); |
| 6665 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 47, 564U, (void *) |
| 6666 | &chartInstance->c1_aac_dtRelease); |
| 6667 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aac_dtRelease, 7U); |
| 6668 | c1_q0 = c1_getAacParam(chartInstance, acc_params_RAMP_START); |
| 6669 | c1_q1 = c1_getAacParam(chartInstance, acc_params_RAMP_END); |
| 6670 | c1_c_covSaturation = false; |
| 6671 | if ((c1_q0 >= 0) && (c1_q1 < c1_q0 - MAX_int32_T)) { |
| 6672 | c1_c_covSaturation = true; |
| 6673 | c1_qY = MAX_int32_T; |
| 6674 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 284U, 1U); |
| 6675 | } else if ((c1_q0 < 0) && (c1_q1 > c1_q0 - MIN_int32_T)) { |
| 6676 | c1_c_covSaturation = true; |
| 6677 | c1_qY = MIN_int32_T; |
| 6678 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 284U, 1U); |
| 6679 | } else { |
| 6680 | c1_qY = c1_q0 - c1_q1; |
| 6681 | } |
| 6682 | |
| 6683 | CV_SATURATION_EVAL(4, 43, 1, 0, c1_c_covSaturation); |
| 6684 | c1_i40 = (int64_T)c1_qY * (int64_T)c1_const_AAC_WORK_RATE_ms; |
| 6685 | c1_d_covSaturation = false; |
| 6686 | if (c1_i40 > 2147483647LL) { |
| 6687 | c1_d_covSaturation = true; |
| 6688 | c1_i40 = 2147483647LL; |
| 6689 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 320U, 1U); |
| 6690 | } else { |
| 6691 | if (c1_i40 < -2147483648LL) { |
| 6692 | c1_d_covSaturation = true; |
| 6693 | c1_i40 = -2147483648LL; |
| 6694 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 320U, 1U); |
| 6695 | } |
| 6696 | } |
| 6697 | |
| 6698 | CV_SATURATION_EVAL(4, 43, 2, 0, c1_d_covSaturation); |
| 6699 | chartInstance->c1_aac_clutchStep = (real_T)(int32_T)c1_i40 / (real_T) |
| 6700 | c1_getAacParam(chartInstance, acc_params_RAMP_TIME); |
| 6701 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 46, 563U, (void *) |
| 6702 | &chartInstance->c1_aac_clutchStep); |
| 6703 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchStep, 5U); |
| 6704 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 6705 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 6706 | &chartInstance->c1_aacCounter); |
| 6707 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 6708 | } |
| 6709 | } else { |
| 6710 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 107U, chartInstance->c1_sfEvent); |
| 6711 | chartInstance->c1_tp_READY = 0U; |
| 6712 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6713 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6714 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6715 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6716 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6717 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6718 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6719 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6720 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6721 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6722 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6723 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6724 | if (chartInstance->c1_is_ACTIVE == c1_IN_READY) { |
| 6725 | } else { |
| 6726 | chartInstance->c1_is_ACTIVE = c1_IN_READY; |
| 6727 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 6728 | &chartInstance->c1_is_ACTIVE); |
| 6729 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6730 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6731 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6732 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6733 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6734 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6735 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6736 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6737 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6738 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6739 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 6740 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 3); |
| 6741 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 2); |
| 6742 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 2); |
| 6743 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6744 | chartInstance->c1_tp_READY = 1U; |
| 6745 | c1_enter_atomic_READY(chartInstance); |
| 6746 | } |
| 6747 | } |
| 6748 | } else { |
| 6749 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 39U, |
| 6750 | chartInstance->c1_sfEvent); |
| 6751 | c1_i38 = c1__s32_minus__(chartInstance, (int32_T) |
| 6752 | chartInstance->c1_aacCounter, 1, 545U, 129, 1); |
| 6753 | c1_covSaturation = false; |
| 6754 | if (c1_i38 < 0) { |
| 6755 | c1_covSaturation = true; |
| 6756 | c1_i38 = 0; |
| 6757 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 545U, 129U, 1U); |
| 6758 | } else { |
| 6759 | if (c1_i38 > 65535) { |
| 6760 | c1_i38 = 65535; |
| 6761 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 545U, 129U, 1U); |
| 6762 | } |
| 6763 | |
| 6764 | CV_SATURATION_EVAL(4, 39, 0, 0, c1_covSaturation); |
| 6765 | } |
| 6766 | |
| 6767 | chartInstance->c1_aacCounter = (uint16_T)c1_i38; |
| 6768 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 6769 | &chartInstance->c1_aacCounter); |
| 6770 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 6771 | c1_checkShift(chartInstance); |
| 6772 | } |
| 6773 | |
| 6774 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 39U, chartInstance->c1_sfEvent); |
| 6775 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6776 | break; |
| 6777 | |
| 6778 | case c1_IN_RELEASING: |
| 6779 | CV_STATE_EVAL(38, 0, c1_IN_RELEASING); |
| 6780 | c1_RELEASING(chartInstance); |
| 6781 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6782 | break; |
| 6783 | |
| 6784 | case c1_IN_RUNNING: |
| 6785 | CV_STATE_EVAL(38, 0, c1_IN_RUNNING); |
| 6786 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 111U, |
| 6787 | chartInstance->c1_sfEvent); |
| 6788 | c1_i37 = (*chartInstance->c1_acc_parameters)[(uint8_T) |
| 6789 | sf_array_bounds_check(sfGlobalDebugInstanceStruct, chartInstance->S, |
| 6790 | 577U, 13, 14, 29U, (int32_T)c1__u8_s32_(chartInstance, (int32_T) |
| 6791 | acc_params_END_GEAR, 577U, 13, 14), 0, 15)]; |
| 6792 | c1_b_temp = _SFD_CCP_CALL(5U, 111U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 6793 | 111U, 0, (real_T)*chartInstance->c1_currGear, (real_T)c1_i37, 0, 5U, |
| 6794 | *chartInstance->c1_currGear >= c1_i37) != 0U, chartInstance->c1_sfEvent); |
| 6795 | if (c1_b_temp) { |
| 6796 | c1_b_temp = _SFD_CCP_CALL(5U, 111U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 6797 | 111U, 1, (real_T)*chartInstance->c1_currGear, 8.0, 0, 1U, |
| 6798 | *chartInstance->c1_currGear != 8) != 0U, chartInstance->c1_sfEvent); |
| 6799 | } |
| 6800 | |
| 6801 | c1_d_out = (CV_TRANSITION_EVAL(111U, (int32_T)c1_b_temp) != 0); |
| 6802 | if (c1_d_out) { |
| 6803 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 111U, chartInstance->c1_sfEvent); |
| 6804 | chartInstance->c1_tp_RUNNING = 0U; |
| 6805 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6806 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6807 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6808 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6809 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6810 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6811 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6812 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6813 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6814 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6815 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6816 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 6817 | chartInstance->c1_tp_ACTIVE = 0U; |
| 6818 | chartInstance->c1_is_ACC = c1_IN_NO_ACTIVE_CHILD; |
| 6819 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6820 | (chartInstance->c1_is_ACC == 1)); |
| 6821 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6822 | (chartInstance->c1_is_ACC == 2)); |
| 6823 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 0); |
| 6824 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 6825 | &chartInstance->c1_is_ACTIVE); |
| 6826 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 6827 | if (chartInstance->c1_is_ACC == c1_IN_STOPPING) { |
| 6828 | } else { |
| 6829 | chartInstance->c1_is_ACC = c1_IN_STOPPING; |
| 6830 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 6831 | &chartInstance->c1_is_ACC); |
| 6832 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 6833 | (chartInstance->c1_is_ACC == 1)); |
| 6834 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 6835 | (chartInstance->c1_is_ACC == 2)); |
| 6836 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 6837 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 7); |
| 6838 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 6); |
| 6839 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 45U, chartInstance->c1_sfEvent); |
| 6840 | chartInstance->c1_tp_STOPPING = 1U; |
| 6841 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 6842 | c1_Clutch_setValue(chartInstance, 0U); |
| 6843 | } |
| 6844 | } else { |
| 6845 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 41U, |
| 6846 | chartInstance->c1_sfEvent); |
| 6847 | c1_aacCheckShift(chartInstance); |
| 6848 | } |
| 6849 | |
| 6850 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 41U, chartInstance->c1_sfEvent); |
| 6851 | if (chartInstance->c1_is_ACC != c1_IN_ACTIVE) { |
| 6852 | } else { |
| 6853 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6854 | } |
| 6855 | break; |
| 6856 | |
| 6857 | case c1_IN_START: |
| 6858 | CV_STATE_EVAL(38, 0, c1_IN_START); |
| 6859 | c1_START(chartInstance); |
| 6860 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6861 | break; |
| 6862 | |
| 6863 | case c1_IN_START_RELEASE: |
| 6864 | CV_STATE_EVAL(38, 0, c1_IN_START_RELEASE); |
| 6865 | c1_START_RELEASE(chartInstance); |
| 6866 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6867 | break; |
| 6868 | |
| 6869 | default: |
| 6870 | CV_STATE_EVAL(38, 0, 0); |
| 6871 | |
| 6872 | /* Unreachable state, for coverage only */ |
| 6873 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6874 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6875 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6876 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6877 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6878 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6879 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6880 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6881 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6882 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6883 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6884 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6885 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 38U, chartInstance->c1_sfEvent); |
| 6886 | break; |
| 6887 | } |
| 6888 | } |
| 6889 | } |
| 6890 | |
| 6891 | static void c1_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 6892 | *chartInstance) |
| 6893 | { |
| 6894 | switch (chartInstance->c1_is_ACTIVE) { |
| 6895 | case c1_IN_READY: |
| 6896 | CV_STATE_EVAL(38, 1, c1_IN_READY); |
| 6897 | chartInstance->c1_tp_READY = 0U; |
| 6898 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6899 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6900 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6901 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6902 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6903 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6904 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6905 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6906 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6907 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6908 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6909 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6910 | break; |
| 6911 | |
| 6912 | case c1_IN_RELEASING: |
| 6913 | CV_STATE_EVAL(38, 1, c1_IN_RELEASING); |
| 6914 | chartInstance->c1_tp_RELEASING = 0U; |
| 6915 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6916 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6917 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6918 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6919 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6920 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6921 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6922 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6923 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6924 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6925 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6926 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 6927 | break; |
| 6928 | |
| 6929 | case c1_IN_RUNNING: |
| 6930 | CV_STATE_EVAL(38, 1, c1_IN_RUNNING); |
| 6931 | chartInstance->c1_tp_RUNNING = 0U; |
| 6932 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6933 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6934 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6935 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6936 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6937 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6938 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6939 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6940 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6941 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6942 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6943 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 6944 | break; |
| 6945 | |
| 6946 | case c1_IN_START: |
| 6947 | CV_STATE_EVAL(38, 1, c1_IN_START); |
| 6948 | chartInstance->c1_tp_START = 0U; |
| 6949 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6950 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6951 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6952 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6953 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6954 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6955 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6956 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6957 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6958 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6959 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6960 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 6961 | break; |
| 6962 | |
| 6963 | case c1_IN_START_RELEASE: |
| 6964 | CV_STATE_EVAL(38, 1, c1_IN_START_RELEASE); |
| 6965 | chartInstance->c1_tp_START_RELEASE = 0U; |
| 6966 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6967 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6968 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6969 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6970 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6971 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6972 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6973 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6974 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6975 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6976 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6977 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 6978 | break; |
| 6979 | |
| 6980 | default: |
| 6981 | CV_STATE_EVAL(38, 1, 0); |
| 6982 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 6983 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 6984 | (chartInstance->c1_is_ACTIVE == 1)); |
| 6985 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 6986 | (chartInstance->c1_is_ACTIVE == 2)); |
| 6987 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 6988 | (chartInstance->c1_is_ACTIVE == 3)); |
| 6989 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 6990 | (chartInstance->c1_is_ACTIVE == 4)); |
| 6991 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 6992 | (chartInstance->c1_is_ACTIVE == 5)); |
| 6993 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 6994 | break; |
| 6995 | } |
| 6996 | } |
| 6997 | |
| 6998 | static void c1_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 6999 | { |
| 7000 | boolean_T c1_b_out; |
| 7001 | int32_T c1_i41; |
| 7002 | boolean_T c1_covSaturation; |
| 7003 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 103U, chartInstance->c1_sfEvent); |
| 7004 | c1_b_out = (CV_TRANSITION_EVAL(103U, (int32_T)_SFD_CCP_CALL(5U, 103U, 0, |
| 7005 | (boolean_T)CV_RELATIONAL_EVAL(5U, 103U, 0, (real_T) |
| 7006 | chartInstance->c1_aacCounter, 1.0, 0, 3U, chartInstance->c1_aacCounter <= 1) |
| 7007 | != 0U, chartInstance->c1_sfEvent)) != 0); |
| 7008 | if (c1_b_out) { |
| 7009 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 103U, chartInstance->c1_sfEvent); |
| 7010 | chartInstance->c1_tp_START = 0U; |
| 7011 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 7012 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7013 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7014 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7015 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7016 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7017 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7018 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7019 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7020 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7021 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7022 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 7023 | if (chartInstance->c1_is_ACTIVE == c1_IN_READY) { |
| 7024 | } else { |
| 7025 | chartInstance->c1_is_ACTIVE = c1_IN_READY; |
| 7026 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 7027 | &chartInstance->c1_is_ACTIVE); |
| 7028 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7029 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7030 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7031 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7032 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7033 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7034 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7035 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7036 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7037 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7038 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 7039 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 3); |
| 7040 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 2); |
| 7041 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 2); |
| 7042 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 7043 | chartInstance->c1_tp_READY = 1U; |
| 7044 | c1_enter_atomic_READY(chartInstance); |
| 7045 | } |
| 7046 | } else { |
| 7047 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 42U, chartInstance->c1_sfEvent); |
| 7048 | c1_i41 = c1__s32_minus__(chartInstance, (int32_T) |
| 7049 | chartInstance->c1_aacCounter, 1, 543U, 155, 1); |
| 7050 | c1_covSaturation = false; |
| 7051 | if (c1_i41 < 0) { |
| 7052 | c1_covSaturation = true; |
| 7053 | c1_i41 = 0; |
| 7054 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 543U, 155U, 1U); |
| 7055 | } else { |
| 7056 | if (c1_i41 > 65535) { |
| 7057 | c1_i41 = 65535; |
| 7058 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 543U, 155U, 1U); |
| 7059 | } |
| 7060 | |
| 7061 | CV_SATURATION_EVAL(4, 42, 0, 0, c1_covSaturation); |
| 7062 | } |
| 7063 | |
| 7064 | chartInstance->c1_aacCounter = (uint16_T)c1_i41; |
| 7065 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7066 | &chartInstance->c1_aacCounter); |
| 7067 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7068 | } |
| 7069 | |
| 7070 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 42U, chartInstance->c1_sfEvent); |
| 7071 | } |
| 7072 | |
| 7073 | static void c1_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 7074 | *chartInstance) |
| 7075 | { |
| 7076 | uint16_T c1_u2; |
| 7077 | *chartInstance->c1_stateFb = (uint16_T)ACC_READY; |
| 7078 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 7079 | chartInstance->c1_stateFb); |
| 7080 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 7081 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 7082 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7083 | &chartInstance->c1_aacCounter); |
| 7084 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7085 | c1_u2 = chartInstance->c1_aacCounter; |
| 7086 | sf_mex_printf("%s =\\n", "aacCounter"); |
| 7087 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u2); |
| 7088 | c1_Clutch_setValue(chartInstance, 100U); |
| 7089 | c1_checkShift(chartInstance); |
| 7090 | } |
| 7091 | |
| 7092 | static void c1_START_RELEASE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 7093 | { |
| 7094 | boolean_T c1_b_out; |
| 7095 | int32_T c1_i42; |
| 7096 | boolean_T c1_covSaturation; |
| 7097 | real_T c1_d1; |
| 7098 | boolean_T c1_b_covSaturation; |
| 7099 | uint8_T c1_u3; |
| 7100 | int32_T c1_q0; |
| 7101 | int32_T c1_q1; |
| 7102 | boolean_T c1_c_covSaturation; |
| 7103 | int32_T c1_qY; |
| 7104 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 102U, chartInstance->c1_sfEvent); |
| 7105 | c1_b_out = (CV_TRANSITION_EVAL(102U, (int32_T)_SFD_CCP_CALL(5U, 102U, 0, |
| 7106 | (boolean_T)CV_RELATIONAL_EVAL(5U, 102U, 0, (real_T) |
| 7107 | chartInstance->c1_aacCounter, 1.0, 0, 3U, chartInstance->c1_aacCounter <= 1) |
| 7108 | != 0U, chartInstance->c1_sfEvent)) != 0); |
| 7109 | if (c1_b_out) { |
| 7110 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 102U, chartInstance->c1_sfEvent); |
| 7111 | chartInstance->c1_tp_START_RELEASE = 0U; |
| 7112 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 7113 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7114 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7115 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7116 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7117 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7118 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7119 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7120 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7121 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7122 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7123 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 7124 | if (chartInstance->c1_is_ACTIVE == c1_IN_RELEASING) { |
| 7125 | } else { |
| 7126 | chartInstance->c1_is_ACTIVE = c1_IN_RELEASING; |
| 7127 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 7128 | &chartInstance->c1_is_ACTIVE); |
| 7129 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7130 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7131 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7132 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7133 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7134 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7135 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7136 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7137 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7138 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7139 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 22); |
| 7140 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 5); |
| 7141 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 4); |
| 7142 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 4); |
| 7143 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 7144 | chartInstance->c1_tp_RELEASING = 1U; |
| 7145 | chartInstance->c1_aac_clutchValue -= chartInstance->c1_aac_clutchStep; |
| 7146 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 45, 561U, (void *) |
| 7147 | &chartInstance->c1_aac_clutchValue); |
| 7148 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchValue, 6U); |
| 7149 | c1_d1 = chartInstance->c1_aac_clutchValue; |
| 7150 | c1_b_covSaturation = false; |
| 7151 | if (c1_d1 < 256.0) { |
| 7152 | if (c1_d1 >= 0.0) { |
| 7153 | c1_u3 = (uint8_T)c1_d1; |
| 7154 | } else { |
| 7155 | c1_b_covSaturation = true; |
| 7156 | c1_u3 = 0U; |
| 7157 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 87U, 5U); |
| 7158 | } |
| 7159 | } else if (c1_d1 >= 256.0) { |
| 7160 | c1_b_covSaturation = true; |
| 7161 | c1_u3 = MAX_uint8_T; |
| 7162 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 87U, 5U); |
| 7163 | } else { |
| 7164 | c1_u3 = 0U; |
| 7165 | } |
| 7166 | |
| 7167 | CV_SATURATION_EVAL(4, 40, 2, 0, c1_b_covSaturation); |
| 7168 | c1_Clutch_setValue(chartInstance, c1_u3); |
| 7169 | c1_q0 = chartInstance->c1_aac_dtRelease; |
| 7170 | c1_q1 = 1; |
| 7171 | c1_c_covSaturation = false; |
| 7172 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 7173 | c1_c_covSaturation = true; |
| 7174 | c1_qY = MAX_int32_T; |
| 7175 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 143U, 1U); |
| 7176 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 7177 | c1_c_covSaturation = true; |
| 7178 | c1_qY = MIN_int32_T; |
| 7179 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 143U, 1U); |
| 7180 | } else { |
| 7181 | c1_qY = c1_q0 - c1_q1; |
| 7182 | } |
| 7183 | |
| 7184 | CV_SATURATION_EVAL(4, 40, 0, 0, c1_c_covSaturation); |
| 7185 | chartInstance->c1_aac_dtRelease = c1_qY; |
| 7186 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 47, 564U, (void *) |
| 7187 | &chartInstance->c1_aac_dtRelease); |
| 7188 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aac_dtRelease, 7U); |
| 7189 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 7190 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7191 | &chartInstance->c1_aacCounter); |
| 7192 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7193 | } |
| 7194 | } else { |
| 7195 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 43U, chartInstance->c1_sfEvent); |
| 7196 | c1_i42 = c1__s32_minus__(chartInstance, (int32_T) |
| 7197 | chartInstance->c1_aacCounter, 1, 547U, 457, 1); |
| 7198 | c1_covSaturation = false; |
| 7199 | if (c1_i42 < 0) { |
| 7200 | c1_covSaturation = true; |
| 7201 | c1_i42 = 0; |
| 7202 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 457U, 1U); |
| 7203 | } else { |
| 7204 | if (c1_i42 > 65535) { |
| 7205 | c1_i42 = 65535; |
| 7206 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 547U, 457U, 1U); |
| 7207 | } |
| 7208 | |
| 7209 | CV_SATURATION_EVAL(4, 43, 3, 0, c1_covSaturation); |
| 7210 | } |
| 7211 | |
| 7212 | chartInstance->c1_aacCounter = (uint16_T)c1_i42; |
| 7213 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7214 | &chartInstance->c1_aacCounter); |
| 7215 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7216 | } |
| 7217 | |
| 7218 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 43U, chartInstance->c1_sfEvent); |
| 7219 | } |
| 7220 | |
| 7221 | static void c1_RELEASING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 7222 | { |
| 7223 | boolean_T c1_b_out; |
| 7224 | int32_T c1_i43; |
| 7225 | boolean_T c1_covSaturation; |
| 7226 | boolean_T c1_temp; |
| 7227 | int32_T c1_i44; |
| 7228 | boolean_T c1_c_out; |
| 7229 | real_T c1_d2; |
| 7230 | boolean_T c1_b_covSaturation; |
| 7231 | uint16_T c1_u4; |
| 7232 | uint8_T c1_u5; |
| 7233 | uint16_T c1_u6; |
| 7234 | boolean_T c1_c_covSaturation; |
| 7235 | int32_T c1_q0; |
| 7236 | int32_T c1_q1; |
| 7237 | boolean_T c1_d_covSaturation; |
| 7238 | int32_T c1_qY; |
| 7239 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 104U, chartInstance->c1_sfEvent); |
| 7240 | c1_b_out = (CV_TRANSITION_EVAL(104U, (int32_T)_SFD_CCP_CALL(5U, 104U, 0, |
| 7241 | (boolean_T)CV_RELATIONAL_EVAL(5U, 104U, 0, (real_T) |
| 7242 | chartInstance->c1_aacCounter, 1.0, 0, 3U, chartInstance->c1_aacCounter <= 1) |
| 7243 | != 0U, chartInstance->c1_sfEvent)) != 0); |
| 7244 | if (c1_b_out) { |
| 7245 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 104U, chartInstance->c1_sfEvent); |
| 7246 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 110U, |
| 7247 | chartInstance->c1_sfEvent); |
| 7248 | c1_temp = _SFD_CCP_CALL(5U, 110U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 110U, |
| 7249 | 0, (real_T)chartInstance->c1_aac_dtRelease, 0.0, 0, 3U, |
| 7250 | chartInstance->c1_aac_dtRelease <= 0) != 0U, chartInstance->c1_sfEvent); |
| 7251 | if (!c1_temp) { |
| 7252 | c1_i44 = c1_getAacParam(chartInstance, acc_params_RAMP_END); |
| 7253 | c1_temp = _SFD_CCP_CALL(5U, 110U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 7254 | 110U, 1, (real_T)*chartInstance->c1_clutchCurrVal, (real_T)c1_i44, 0, 3U, |
| 7255 | *chartInstance->c1_clutchCurrVal <= c1_i44) != 0U, |
| 7256 | chartInstance->c1_sfEvent); |
| 7257 | } |
| 7258 | |
| 7259 | c1_c_out = (CV_TRANSITION_EVAL(110U, (int32_T)c1_temp) != 0); |
| 7260 | if (c1_c_out) { |
| 7261 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 110U, chartInstance->c1_sfEvent); |
| 7262 | c1_Clutch_setValue(chartInstance, 0U); |
| 7263 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 7264 | chartInstance->c1_tp_RELEASING = 0U; |
| 7265 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 7266 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7267 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7268 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7269 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7270 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7271 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7272 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7273 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7274 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7275 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7276 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 7277 | if (chartInstance->c1_is_ACTIVE == c1_IN_RUNNING) { |
| 7278 | } else { |
| 7279 | chartInstance->c1_is_ACTIVE = c1_IN_RUNNING; |
| 7280 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 7281 | &chartInstance->c1_is_ACTIVE); |
| 7282 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7283 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7284 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7285 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7286 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7287 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7288 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7289 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7290 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7291 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7292 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 23); |
| 7293 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 6); |
| 7294 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 5); |
| 7295 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 5); |
| 7296 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 7297 | chartInstance->c1_tp_RUNNING = 1U; |
| 7298 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 7299 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7300 | &chartInstance->c1_aacCounter); |
| 7301 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7302 | c1_u4 = chartInstance->c1_aacCounter; |
| 7303 | sf_mex_printf("%s =\\n", "aacCounter"); |
| 7304 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u4); |
| 7305 | c1_u6 = *chartInstance->c1_currGear; |
| 7306 | c1_c_covSaturation = false; |
| 7307 | if (c1_u6 > 255) { |
| 7308 | c1_c_covSaturation = true; |
| 7309 | c1_u6 = 255U; |
| 7310 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 514U, 60U, 8U); |
| 7311 | } |
| 7312 | |
| 7313 | CV_SATURATION_EVAL(4, 41, 0, 0, c1_c_covSaturation); |
| 7314 | chartInstance->c1_lastShift = (uint8_T)c1_u6; |
| 7315 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 7316 | &chartInstance->c1_lastShift); |
| 7317 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 7318 | c1_aacCheckShift(chartInstance); |
| 7319 | } |
| 7320 | } else { |
| 7321 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 112U, chartInstance->c1_sfEvent); |
| 7322 | chartInstance->c1_tp_RELEASING = 0U; |
| 7323 | chartInstance->c1_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 7324 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7325 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7326 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7327 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7328 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7329 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7330 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7331 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7332 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7333 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7334 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 7335 | if (chartInstance->c1_is_ACTIVE == c1_IN_RELEASING) { |
| 7336 | } else { |
| 7337 | chartInstance->c1_is_ACTIVE = c1_IN_RELEASING; |
| 7338 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 7339 | &chartInstance->c1_is_ACTIVE); |
| 7340 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7341 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7342 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7343 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7344 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7345 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7346 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7347 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7348 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7349 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7350 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 22); |
| 7351 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 5); |
| 7352 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 4); |
| 7353 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 4); |
| 7354 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 7355 | chartInstance->c1_tp_RELEASING = 1U; |
| 7356 | chartInstance->c1_aac_clutchValue -= chartInstance->c1_aac_clutchStep; |
| 7357 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 45, 561U, (void *) |
| 7358 | &chartInstance->c1_aac_clutchValue); |
| 7359 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchValue, 6U); |
| 7360 | c1_d2 = chartInstance->c1_aac_clutchValue; |
| 7361 | c1_b_covSaturation = false; |
| 7362 | if (c1_d2 < 256.0) { |
| 7363 | if (c1_d2 >= 0.0) { |
| 7364 | c1_u5 = (uint8_T)c1_d2; |
| 7365 | } else { |
| 7366 | c1_b_covSaturation = true; |
| 7367 | c1_u5 = 0U; |
| 7368 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 87U, 5U); |
| 7369 | } |
| 7370 | } else if (c1_d2 >= 256.0) { |
| 7371 | c1_b_covSaturation = true; |
| 7372 | c1_u5 = MAX_uint8_T; |
| 7373 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 87U, 5U); |
| 7374 | } else { |
| 7375 | c1_u5 = 0U; |
| 7376 | } |
| 7377 | |
| 7378 | CV_SATURATION_EVAL(4, 40, 2, 0, c1_b_covSaturation); |
| 7379 | c1_Clutch_setValue(chartInstance, c1_u5); |
| 7380 | c1_q0 = chartInstance->c1_aac_dtRelease; |
| 7381 | c1_q1 = 1; |
| 7382 | c1_d_covSaturation = false; |
| 7383 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 7384 | c1_d_covSaturation = true; |
| 7385 | c1_qY = MAX_int32_T; |
| 7386 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 143U, 1U); |
| 7387 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 7388 | c1_d_covSaturation = true; |
| 7389 | c1_qY = MIN_int32_T; |
| 7390 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 143U, 1U); |
| 7391 | } else { |
| 7392 | c1_qY = c1_q0 - c1_q1; |
| 7393 | } |
| 7394 | |
| 7395 | CV_SATURATION_EVAL(4, 40, 0, 0, c1_d_covSaturation); |
| 7396 | chartInstance->c1_aac_dtRelease = c1_qY; |
| 7397 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 47, 564U, (void *) |
| 7398 | &chartInstance->c1_aac_dtRelease); |
| 7399 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aac_dtRelease, 7U); |
| 7400 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 7401 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7402 | &chartInstance->c1_aacCounter); |
| 7403 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7404 | } |
| 7405 | } |
| 7406 | } else { |
| 7407 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 40U, chartInstance->c1_sfEvent); |
| 7408 | c1_i43 = c1__s32_minus__(chartInstance, (int32_T) |
| 7409 | chartInstance->c1_aacCounter, 1, 544U, 213, 1); |
| 7410 | c1_covSaturation = false; |
| 7411 | if (c1_i43 < 0) { |
| 7412 | c1_covSaturation = true; |
| 7413 | c1_i43 = 0; |
| 7414 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 213U, 1U); |
| 7415 | } else { |
| 7416 | if (c1_i43 > 65535) { |
| 7417 | c1_i43 = 65535; |
| 7418 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 544U, 213U, 1U); |
| 7419 | } |
| 7420 | |
| 7421 | CV_SATURATION_EVAL(4, 40, 1, 0, c1_covSaturation); |
| 7422 | } |
| 7423 | |
| 7424 | chartInstance->c1_aacCounter = (uint16_T)c1_i43; |
| 7425 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7426 | &chartInstance->c1_aacCounter); |
| 7427 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7428 | } |
| 7429 | |
| 7430 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 40U, chartInstance->c1_sfEvent); |
| 7431 | } |
| 7432 | |
| 7433 | static void c1_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 7434 | { |
| 7435 | boolean_T c1_temp; |
| 7436 | boolean_T c1_b_out; |
| 7437 | uint16_T c1_u7; |
| 7438 | uint16_T c1_u8; |
| 7439 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 121U, chartInstance->c1_sfEvent); |
| 7440 | c1_temp = _SFD_CCP_CALL(5U, 121U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 121U, 0, |
| 7441 | (real_T)(*chartInstance->c1_aacCom)[0], (real_T)chartInstance->c1_lastAacCom, |
| 7442 | 0, 1U, (*chartInstance->c1_aacCom)[0] != chartInstance->c1_lastAacCom) != 0U, |
| 7443 | chartInstance->c1_sfEvent); |
| 7444 | if (c1_temp) { |
| 7445 | c1_temp = _SFD_CCP_CALL(5U, 121U, 1, ((*chartInstance->c1_aacCom)[1] == |
| 7446 | ACC_READY) != 0U, chartInstance->c1_sfEvent); |
| 7447 | } |
| 7448 | |
| 7449 | c1_b_out = (CV_TRANSITION_EVAL(121U, (int32_T)c1_temp) != 0); |
| 7450 | if (c1_b_out) { |
| 7451 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 121U, chartInstance->c1_sfEvent); |
| 7452 | chartInstance->c1_lastAacCom = (*chartInstance->c1_aacCom)[0]; |
| 7453 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 7454 | &chartInstance->c1_lastAacCom); |
| 7455 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAacCom, 1U); |
| 7456 | c1_u7 = chartInstance->c1_lastAacCom; |
| 7457 | sf_mex_printf("%s =\\n", "lastAacCom"); |
| 7458 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u7); |
| 7459 | chartInstance->c1_tp_DEFAULT = 0U; |
| 7460 | chartInstance->c1_is_ACCELERATION = c1_IN_NO_ACTIVE_CHILD; |
| 7461 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 7462 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 7463 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 7464 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 7465 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 47U, chartInstance->c1_sfEvent); |
| 7466 | chartInstance->c1_is_ACCELERATION = c1_IN_ACC; |
| 7467 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 7468 | &chartInstance->c1_is_ACCELERATION); |
| 7469 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 7470 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 7471 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 7472 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 7473 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 7474 | chartInstance->c1_tp_ACC = 1U; |
| 7475 | chartInstance->c1_aacCounter = 0U; |
| 7476 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7477 | &chartInstance->c1_aacCounter); |
| 7478 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7479 | chartInstance->c1_aac_clutchValue = 0.0; |
| 7480 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 45, 561U, (void *) |
| 7481 | &chartInstance->c1_aac_clutchValue); |
| 7482 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchValue, 6U); |
| 7483 | chartInstance->c1_aac_clutchStep = 0.0; |
| 7484 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 46, 563U, (void *) |
| 7485 | &chartInstance->c1_aac_clutchStep); |
| 7486 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_aac_clutchStep, 5U); |
| 7487 | chartInstance->c1_aac_dtRelease = 0; |
| 7488 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 47, 564U, (void *) |
| 7489 | &chartInstance->c1_aac_dtRelease); |
| 7490 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aac_dtRelease, 7U); |
| 7491 | chartInstance->c1_is_ACC = c1_IN_ACTIVE; |
| 7492 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 7493 | &chartInstance->c1_is_ACC); |
| 7494 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 7495 | (chartInstance->c1_is_ACC == 1)); |
| 7496 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 7497 | (chartInstance->c1_is_ACC == 2)); |
| 7498 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 7499 | chartInstance->c1_tp_ACTIVE = 1U; |
| 7500 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 105U, chartInstance->c1_sfEvent); |
| 7501 | if (chartInstance->c1_is_ACTIVE == c1_IN_START) { |
| 7502 | } else { |
| 7503 | chartInstance->c1_is_ACTIVE = c1_IN_START; |
| 7504 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 7505 | &chartInstance->c1_is_ACTIVE); |
| 7506 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 7507 | (chartInstance->c1_is_ACTIVE == 1)); |
| 7508 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 7509 | (chartInstance->c1_is_ACTIVE == 2)); |
| 7510 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 7511 | (chartInstance->c1_is_ACTIVE == 3)); |
| 7512 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 7513 | (chartInstance->c1_is_ACTIVE == 4)); |
| 7514 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 7515 | (chartInstance->c1_is_ACTIVE == 5)); |
| 7516 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 19); |
| 7517 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 2, 820U, 2); |
| 7518 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 3, 434U, 1); |
| 7519 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 4, 538U, 1); |
| 7520 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 7521 | chartInstance->c1_tp_START = 1U; |
| 7522 | *chartInstance->c1_stateFb = (uint16_T)ACC_READY; |
| 7523 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 7524 | chartInstance->c1_stateFb); |
| 7525 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 7526 | chartInstance->c1_aacCounter = c1_const_AAC_WORK_RATE_ms; |
| 7527 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 7528 | &chartInstance->c1_aacCounter); |
| 7529 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_aacCounter, 4U); |
| 7530 | c1_u8 = chartInstance->c1_aacCounter; |
| 7531 | sf_mex_printf("%s =\\n", "aacCounter"); |
| 7532 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u8); |
| 7533 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 7534 | c1_Clutch_setValue(chartInstance, 100U); |
| 7535 | } |
| 7536 | } else { |
| 7537 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 47U, chartInstance->c1_sfEvent); |
| 7538 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 7539 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 7540 | chartInstance->c1_stateFb); |
| 7541 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 7542 | c1_checkShift(chartInstance); |
| 7543 | c1_checkClutch(chartInstance); |
| 7544 | } |
| 7545 | |
| 7546 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 47U, chartInstance->c1_sfEvent); |
| 7547 | } |
| 7548 | |
| 7549 | static void c1_AUTOCROSS(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 7550 | { |
| 7551 | boolean_T c1_temp; |
| 7552 | boolean_T c1_b_out; |
| 7553 | boolean_T c1_c_out; |
| 7554 | boolean_T c1_d_out; |
| 7555 | boolean_T c1_e_out; |
| 7556 | boolean_T c1_f_out; |
| 7557 | int32_T c1_i45; |
| 7558 | int32_T c1_i46; |
| 7559 | int32_T c1_i47; |
| 7560 | int32_T c1_i48; |
| 7561 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 179U, chartInstance->c1_sfEvent); |
| 7562 | c1_temp = _SFD_CCP_CALL(5U, 179U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 179U, 0, |
| 7563 | (real_T)(*chartInstance->c1_modeCom)[0], (real_T) |
| 7564 | (*chartInstance->c1_lastModeCom)[0], 0, 1U, (*chartInstance->c1_modeCom)[0] |
| 7565 | != (*chartInstance->c1_lastModeCom)[0]) != 0U, chartInstance->c1_sfEvent); |
| 7566 | if (c1_temp) { |
| 7567 | c1_temp = _SFD_CCP_CALL(5U, 179U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, 179U, |
| 7568 | 1, (real_T)(*chartInstance->c1_modeCom)[1], (real_T) |
| 7569 | (*chartInstance->c1_lastModeCom)[1], 0, 1U, (*chartInstance->c1_modeCom)[1] |
| 7570 | != (*chartInstance->c1_lastModeCom)[1]) != 0U, chartInstance->c1_sfEvent); |
| 7571 | } |
| 7572 | |
| 7573 | c1_b_out = (CV_TRANSITION_EVAL(179U, (int32_T)c1_temp) != 0); |
| 7574 | if (c1_b_out) { |
| 7575 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 179U, chartInstance->c1_sfEvent); |
| 7576 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 7577 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 7578 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 7579 | chartInstance->c1_stateFb); |
| 7580 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 7581 | c1_Clutch_setValue(chartInstance, 0U); |
| 7582 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 145U, chartInstance->c1_sfEvent); |
| 7583 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 137U, |
| 7584 | chartInstance->c1_sfEvent); |
| 7585 | c1_c_out = (CV_TRANSITION_EVAL(137U, (int32_T)_SFD_CCP_CALL(5U, 137U, 0, |
| 7586 | ((*chartInstance->c1_modeCom)[1] == ENDURANCE_MODE) != 0U, |
| 7587 | chartInstance->c1_sfEvent)) != 0); |
| 7588 | if (c1_c_out) { |
| 7589 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 137U, chartInstance->c1_sfEvent); |
| 7590 | c1_exit_internal_AUTOCROSS(chartInstance); |
| 7591 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 7592 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 7593 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7594 | (chartInstance->c1_is_MODES == 1)); |
| 7595 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7596 | (chartInstance->c1_is_MODES == 2)); |
| 7597 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7598 | (chartInstance->c1_is_MODES == 3)); |
| 7599 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7600 | (chartInstance->c1_is_MODES == 4)); |
| 7601 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7602 | (chartInstance->c1_is_MODES == 5)); |
| 7603 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 7604 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 7605 | &chartInstance->c1_is_AUTOCROSS); |
| 7606 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 7607 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 7608 | } else { |
| 7609 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 7610 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 7611 | &chartInstance->c1_is_MODES); |
| 7612 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7613 | (chartInstance->c1_is_MODES == 1)); |
| 7614 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7615 | (chartInstance->c1_is_MODES == 2)); |
| 7616 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7617 | (chartInstance->c1_is_MODES == 3)); |
| 7618 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7619 | (chartInstance->c1_is_MODES == 4)); |
| 7620 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7621 | (chartInstance->c1_is_MODES == 5)); |
| 7622 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 7623 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 7624 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 7625 | } |
| 7626 | |
| 7627 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 7628 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 7629 | &chartInstance->c1_is_MANUAL_MODES); |
| 7630 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 7631 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 7632 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 7633 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 7634 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 7635 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 7636 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 7637 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 7638 | } else { |
| 7639 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 138U, chartInstance->c1_sfEvent); |
| 7640 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 139U, |
| 7641 | chartInstance->c1_sfEvent); |
| 7642 | c1_d_out = (CV_TRANSITION_EVAL(139U, (int32_T)_SFD_CCP_CALL(5U, 139U, 0, |
| 7643 | ((*chartInstance->c1_modeCom)[1] == SKIDPAD_MODE) != 0U, |
| 7644 | chartInstance->c1_sfEvent)) != 0); |
| 7645 | if (c1_d_out) { |
| 7646 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 139U, chartInstance->c1_sfEvent); |
| 7647 | c1_exit_internal_AUTOCROSS(chartInstance); |
| 7648 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 7649 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 7650 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7651 | (chartInstance->c1_is_MODES == 1)); |
| 7652 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7653 | (chartInstance->c1_is_MODES == 2)); |
| 7654 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7655 | (chartInstance->c1_is_MODES == 3)); |
| 7656 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7657 | (chartInstance->c1_is_MODES == 4)); |
| 7658 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7659 | (chartInstance->c1_is_MODES == 5)); |
| 7660 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 7661 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 7662 | &chartInstance->c1_is_AUTOCROSS); |
| 7663 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 7664 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 7665 | } else { |
| 7666 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 7667 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 7668 | &chartInstance->c1_is_MODES); |
| 7669 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7670 | (chartInstance->c1_is_MODES == 1)); |
| 7671 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7672 | (chartInstance->c1_is_MODES == 2)); |
| 7673 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7674 | (chartInstance->c1_is_MODES == 3)); |
| 7675 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7676 | (chartInstance->c1_is_MODES == 4)); |
| 7677 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7678 | (chartInstance->c1_is_MODES == 5)); |
| 7679 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 7680 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 7681 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 7682 | } |
| 7683 | |
| 7684 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 7685 | } else { |
| 7686 | chartInstance->c1_is_MANUAL_MODES = c1_IN_SKIDPAD; |
| 7687 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 7688 | &chartInstance->c1_is_MANUAL_MODES); |
| 7689 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 7690 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 7691 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 7692 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 7693 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 3); |
| 7694 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 2); |
| 7695 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 7696 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 7697 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 7698 | } |
| 7699 | } else { |
| 7700 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 140U, chartInstance->c1_sfEvent); |
| 7701 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 141U, |
| 7702 | chartInstance->c1_sfEvent); |
| 7703 | c1_e_out = (CV_TRANSITION_EVAL(141U, (int32_T)_SFD_CCP_CALL(5U, 141U, 0, |
| 7704 | ((*chartInstance->c1_modeCom)[1] == ACCELERATION_MODE) != 0U, |
| 7705 | chartInstance->c1_sfEvent)) != 0); |
| 7706 | if (c1_e_out) { |
| 7707 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 141U, chartInstance->c1_sfEvent); |
| 7708 | c1_exit_internal_AUTOCROSS(chartInstance); |
| 7709 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 7710 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 7711 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7712 | (chartInstance->c1_is_MODES == 1)); |
| 7713 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7714 | (chartInstance->c1_is_MODES == 2)); |
| 7715 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7716 | (chartInstance->c1_is_MODES == 3)); |
| 7717 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7718 | (chartInstance->c1_is_MODES == 4)); |
| 7719 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7720 | (chartInstance->c1_is_MODES == 5)); |
| 7721 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 7722 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 7723 | &chartInstance->c1_is_AUTOCROSS); |
| 7724 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 7725 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 7726 | } else { |
| 7727 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION; |
| 7728 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 7729 | &chartInstance->c1_is_MODES); |
| 7730 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7731 | (chartInstance->c1_is_MODES == 1)); |
| 7732 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7733 | (chartInstance->c1_is_MODES == 2)); |
| 7734 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7735 | (chartInstance->c1_is_MODES == 3)); |
| 7736 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7737 | (chartInstance->c1_is_MODES == 4)); |
| 7738 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7739 | (chartInstance->c1_is_MODES == 5)); |
| 7740 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 7741 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 7742 | c1_enter_atomic_ACCELERATION(chartInstance); |
| 7743 | } |
| 7744 | |
| 7745 | c1_enter_internal_ACCELERATION(chartInstance); |
| 7746 | } else { |
| 7747 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 177U, chartInstance->c1_sfEvent); |
| 7748 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 186U, chartInstance->c1_sfEvent); |
| 7749 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 185U, |
| 7750 | chartInstance->c1_sfEvent); |
| 7751 | c1_f_out = (CV_TRANSITION_EVAL(185U, (int32_T)_SFD_CCP_CALL(5U, 185U, |
| 7752 | 0, ((*chartInstance->c1_modeCom)[1] == AUTOX_MODE) != 0U, |
| 7753 | chartInstance->c1_sfEvent)) != 0); |
| 7754 | if (c1_f_out) { |
| 7755 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 185U, chartInstance->c1_sfEvent); |
| 7756 | c1_exit_internal_AUTOCROSS(chartInstance); |
| 7757 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 7758 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 7759 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7760 | (chartInstance->c1_is_MODES == 1)); |
| 7761 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7762 | (chartInstance->c1_is_MODES == 2)); |
| 7763 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7764 | (chartInstance->c1_is_MODES == 3)); |
| 7765 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7766 | (chartInstance->c1_is_MODES == 4)); |
| 7767 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7768 | (chartInstance->c1_is_MODES == 5)); |
| 7769 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 7770 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 7771 | &chartInstance->c1_is_AUTOCROSS); |
| 7772 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 7773 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 7774 | } else { |
| 7775 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION_PID; |
| 7776 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 7777 | &chartInstance->c1_is_MODES); |
| 7778 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7779 | (chartInstance->c1_is_MODES == 1)); |
| 7780 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7781 | (chartInstance->c1_is_MODES == 2)); |
| 7782 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7783 | (chartInstance->c1_is_MODES == 3)); |
| 7784 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7785 | (chartInstance->c1_is_MODES == 4)); |
| 7786 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7787 | (chartInstance->c1_is_MODES == 5)); |
| 7788 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 7789 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 7790 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 7791 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 7792 | &chartInstance->c1_lastAutoXCom); |
| 7793 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 7794 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 7795 | [0]; |
| 7796 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 7797 | chartInstance->c1_lastModeCom); |
| 7798 | for (c1_i46 = 0; c1_i46 < 2; c1_i46++) { |
| 7799 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 7800 | [c1_i46], 48U); |
| 7801 | } |
| 7802 | |
| 7803 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 7804 | [1]; |
| 7805 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 7806 | chartInstance->c1_lastModeCom); |
| 7807 | for (c1_i48 = 0; c1_i48 < 2; c1_i48++) { |
| 7808 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 7809 | [c1_i48], 48U); |
| 7810 | } |
| 7811 | } |
| 7812 | |
| 7813 | c1_enter_internal_ACCELERATION_PID(chartInstance); |
| 7814 | } else { |
| 7815 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 178U, chartInstance->c1_sfEvent); |
| 7816 | c1_exit_internal_AUTOCROSS(chartInstance); |
| 7817 | chartInstance->c1_tp_AUTOCROSS = 0U; |
| 7818 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 7819 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7820 | (chartInstance->c1_is_MODES == 1)); |
| 7821 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7822 | (chartInstance->c1_is_MODES == 2)); |
| 7823 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7824 | (chartInstance->c1_is_MODES == 3)); |
| 7825 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7826 | (chartInstance->c1_is_MODES == 4)); |
| 7827 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7828 | (chartInstance->c1_is_MODES == 5)); |
| 7829 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 0); |
| 7830 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 7831 | &chartInstance->c1_is_AUTOCROSS); |
| 7832 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 7833 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 7834 | } else { |
| 7835 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 7836 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 7837 | &chartInstance->c1_is_MODES); |
| 7838 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 7839 | (chartInstance->c1_is_MODES == 1)); |
| 7840 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 7841 | (chartInstance->c1_is_MODES == 2)); |
| 7842 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 7843 | (chartInstance->c1_is_MODES == 3)); |
| 7844 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 7845 | (chartInstance->c1_is_MODES == 4)); |
| 7846 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 7847 | (chartInstance->c1_is_MODES == 5)); |
| 7848 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 7849 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 7850 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 7851 | [0]; |
| 7852 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 7853 | chartInstance->c1_lastModeCom); |
| 7854 | for (c1_i45 = 0; c1_i45 < 2; c1_i45++) { |
| 7855 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 7856 | [c1_i45], 48U); |
| 7857 | } |
| 7858 | |
| 7859 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 7860 | [1]; |
| 7861 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 7862 | chartInstance->c1_lastModeCom); |
| 7863 | for (c1_i47 = 0; c1_i47 < 2; c1_i47++) { |
| 7864 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 7865 | [c1_i47], 48U); |
| 7866 | } |
| 7867 | |
| 7868 | c1_checkShift(chartInstance); |
| 7869 | c1_checkClutch(chartInstance); |
| 7870 | } |
| 7871 | |
| 7872 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 136U, chartInstance->c1_sfEvent); |
| 7873 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 7874 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 7875 | &chartInstance->c1_is_MANUAL_MODES); |
| 7876 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 7877 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 7878 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 7879 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 7880 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 7881 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 7882 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 7883 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 7884 | } |
| 7885 | } |
| 7886 | } |
| 7887 | } |
| 7888 | } else { |
| 7889 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 61U, chartInstance->c1_sfEvent); |
| 7890 | switch (chartInstance->c1_is_AUTOCROSS) { |
| 7891 | case c1_b_IN_DEFAULT: |
| 7892 | CV_STATE_EVAL(61, 0, c1_b_IN_DEFAULT); |
| 7893 | c1_b_DEFAULT(chartInstance); |
| 7894 | break; |
| 7895 | |
| 7896 | case c1_IN_LAUNCH: |
| 7897 | CV_STATE_EVAL(61, 0, c1_IN_LAUNCH); |
| 7898 | c1_LAUNCH(chartInstance); |
| 7899 | break; |
| 7900 | |
| 7901 | default: |
| 7902 | CV_STATE_EVAL(61, 0, 0); |
| 7903 | |
| 7904 | /* Unreachable state, for coverage only */ |
| 7905 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 7906 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 7907 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 7908 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 7909 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 7910 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 7911 | break; |
| 7912 | } |
| 7913 | } |
| 7914 | |
| 7915 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 61U, chartInstance->c1_sfEvent); |
| 7916 | } |
| 7917 | |
| 7918 | static void c1_exit_internal_AUTOCROSS(SFc1_GCU_Model_genCodeInstanceStruct |
| 7919 | *chartInstance) |
| 7920 | { |
| 7921 | switch (chartInstance->c1_is_AUTOCROSS) { |
| 7922 | case c1_b_IN_DEFAULT: |
| 7923 | CV_STATE_EVAL(61, 1, c1_b_IN_DEFAULT); |
| 7924 | chartInstance->c1_b_tp_DEFAULT = 0U; |
| 7925 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 7926 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 7927 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 7928 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 7929 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 7930 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 7931 | break; |
| 7932 | |
| 7933 | case c1_IN_LAUNCH: |
| 7934 | CV_STATE_EVAL(61, 1, c1_IN_LAUNCH); |
| 7935 | switch (chartInstance->c1_is_LAUNCH) { |
| 7936 | case c1_IN_ACTIVE: |
| 7937 | CV_STATE_EVAL(63, 1, c1_IN_ACTIVE); |
| 7938 | c1_b_exit_internal_ACTIVE(chartInstance); |
| 7939 | chartInstance->c1_b_tp_ACTIVE = 0U; |
| 7940 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 7941 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 7942 | (chartInstance->c1_is_LAUNCH == 1)); |
| 7943 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 7944 | (chartInstance->c1_is_LAUNCH == 2)); |
| 7945 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 0); |
| 7946 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 7947 | &chartInstance->c1_b_is_ACTIVE); |
| 7948 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 7949 | break; |
| 7950 | |
| 7951 | case c1_IN_STOPPING: |
| 7952 | CV_STATE_EVAL(63, 1, c1_IN_STOPPING); |
| 7953 | chartInstance->c1_b_tp_STOPPING = 0U; |
| 7954 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 7955 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 7956 | (chartInstance->c1_is_LAUNCH == 1)); |
| 7957 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 7958 | (chartInstance->c1_is_LAUNCH == 2)); |
| 7959 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 7960 | break; |
| 7961 | |
| 7962 | default: |
| 7963 | CV_STATE_EVAL(63, 1, 0); |
| 7964 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 7965 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 7966 | (chartInstance->c1_is_LAUNCH == 1)); |
| 7967 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 7968 | (chartInstance->c1_is_LAUNCH == 2)); |
| 7969 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 7970 | break; |
| 7971 | } |
| 7972 | |
| 7973 | chartInstance->c1_tp_LAUNCH = 0U; |
| 7974 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 7975 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 7976 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 7977 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 7978 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 7979 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 0); |
| 7980 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 7981 | &chartInstance->c1_is_LAUNCH); |
| 7982 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 7983 | break; |
| 7984 | |
| 7985 | default: |
| 7986 | CV_STATE_EVAL(61, 1, 0); |
| 7987 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 7988 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 7989 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 7990 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 7991 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 7992 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 7993 | break; |
| 7994 | } |
| 7995 | } |
| 7996 | |
| 7997 | static void c1_LAUNCH(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 7998 | { |
| 7999 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 63U, chartInstance->c1_sfEvent); |
| 8000 | switch (chartInstance->c1_is_LAUNCH) { |
| 8001 | case c1_IN_ACTIVE: |
| 8002 | CV_STATE_EVAL(63, 0, c1_IN_ACTIVE); |
| 8003 | c1_b_ACTIVE(chartInstance); |
| 8004 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 63U, chartInstance->c1_sfEvent); |
| 8005 | break; |
| 8006 | |
| 8007 | case c1_IN_STOPPING: |
| 8008 | CV_STATE_EVAL(63, 0, c1_IN_STOPPING); |
| 8009 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 155U, chartInstance->c1_sfEvent); |
| 8010 | chartInstance->c1_b_tp_STOPPING = 0U; |
| 8011 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 8012 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8013 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8014 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8015 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8016 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 8017 | chartInstance->c1_tp_LAUNCH = 0U; |
| 8018 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 8019 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 8020 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 8021 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 8022 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 8023 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 0); |
| 8024 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 8025 | &chartInstance->c1_is_LAUNCH); |
| 8026 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 8027 | if (chartInstance->c1_is_AUTOCROSS == c1_b_IN_DEFAULT) { |
| 8028 | } else { |
| 8029 | chartInstance->c1_is_AUTOCROSS = c1_b_IN_DEFAULT; |
| 8030 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 8031 | &chartInstance->c1_is_AUTOCROSS); |
| 8032 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 8033 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 8034 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 8035 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 8036 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 18); |
| 8037 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 1); |
| 8038 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 8039 | chartInstance->c1_b_tp_DEFAULT = 1U; |
| 8040 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_DEFAULT; |
| 8041 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 8042 | chartInstance->c1_stateFb); |
| 8043 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 8044 | c1_checkShift(chartInstance); |
| 8045 | c1_checkClutch(chartInstance); |
| 8046 | } |
| 8047 | |
| 8048 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 71U, chartInstance->c1_sfEvent); |
| 8049 | if (chartInstance->c1_is_AUTOCROSS != c1_IN_LAUNCH) { |
| 8050 | } else { |
| 8051 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 63U, chartInstance->c1_sfEvent); |
| 8052 | } |
| 8053 | break; |
| 8054 | |
| 8055 | default: |
| 8056 | CV_STATE_EVAL(63, 0, 0); |
| 8057 | |
| 8058 | /* Unreachable state, for coverage only */ |
| 8059 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 8060 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8061 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8062 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8063 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8064 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 8065 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 63U, chartInstance->c1_sfEvent); |
| 8066 | break; |
| 8067 | } |
| 8068 | } |
| 8069 | |
| 8070 | static void c1_b_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 8071 | { |
| 8072 | boolean_T c1_temp; |
| 8073 | boolean_T c1_b_out; |
| 8074 | boolean_T c1_c_out; |
| 8075 | int32_T c1_i49; |
| 8076 | uint16_T c1_u9; |
| 8077 | boolean_T c1_b_temp; |
| 8078 | int32_T c1_i50; |
| 8079 | boolean_T c1_covSaturation; |
| 8080 | boolean_T c1_c_temp; |
| 8081 | boolean_T c1_d_out; |
| 8082 | boolean_T c1_d_temp; |
| 8083 | int32_T c1_i51; |
| 8084 | boolean_T c1_e_out; |
| 8085 | real_T c1_d3; |
| 8086 | boolean_T c1_b_covSaturation; |
| 8087 | uint8_T c1_u10; |
| 8088 | int32_T c1_q0; |
| 8089 | int32_T c1_q1; |
| 8090 | boolean_T c1_c_covSaturation; |
| 8091 | int32_T c1_qY; |
| 8092 | int64_T c1_i52; |
| 8093 | boolean_T c1_d_covSaturation; |
| 8094 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 153U, chartInstance->c1_sfEvent); |
| 8095 | c1_temp = _SFD_CCP_CALL(5U, 153U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 153U, 0, |
| 8096 | (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 8097 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] != |
| 8098 | chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 8099 | if (c1_temp) { |
| 8100 | c1_temp = _SFD_CCP_CALL(5U, 153U, 1, ((*chartInstance->c1_autoXCom)[1] == |
| 8101 | AUTOX_DEFAULT) != 0U, chartInstance->c1_sfEvent); |
| 8102 | } |
| 8103 | |
| 8104 | c1_b_out = (CV_TRANSITION_EVAL(153U, (int32_T)c1_temp) != 0); |
| 8105 | if (c1_b_out) { |
| 8106 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 153U, chartInstance->c1_sfEvent); |
| 8107 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 8108 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 8109 | &chartInstance->c1_lastAutoXCom); |
| 8110 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 8111 | c1_u9 = chartInstance->c1_lastAutoXCom; |
| 8112 | sf_mex_printf("%s =\\n", "lastAutoXCom"); |
| 8113 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u9); |
| 8114 | c1_b_exit_internal_ACTIVE(chartInstance); |
| 8115 | chartInstance->c1_b_tp_ACTIVE = 0U; |
| 8116 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 8117 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8118 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8119 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8120 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8121 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 0); |
| 8122 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8123 | &chartInstance->c1_b_is_ACTIVE); |
| 8124 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 8125 | if (chartInstance->c1_is_LAUNCH == c1_IN_STOPPING) { |
| 8126 | } else { |
| 8127 | chartInstance->c1_is_LAUNCH = c1_IN_STOPPING; |
| 8128 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 8129 | &chartInstance->c1_is_LAUNCH); |
| 8130 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8131 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8132 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8133 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8134 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 8135 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 7); |
| 8136 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 6); |
| 8137 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 8138 | chartInstance->c1_b_tp_STOPPING = 1U; |
| 8139 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 8140 | c1_Clutch_setValue(chartInstance, 0U); |
| 8141 | } |
| 8142 | |
| 8143 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8144 | } else { |
| 8145 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8146 | switch (chartInstance->c1_b_is_ACTIVE) { |
| 8147 | case c1_IN_READY: |
| 8148 | CV_STATE_EVAL(64, 0, c1_IN_READY); |
| 8149 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 159U, |
| 8150 | chartInstance->c1_sfEvent); |
| 8151 | c1_c_out = (CV_TRANSITION_EVAL(159U, (int32_T)_SFD_CCP_CALL(5U, 159U, 0, |
| 8152 | (boolean_T)CV_RELATIONAL_EVAL(5U, 159U, 0, (real_T) |
| 8153 | chartInstance->c1_autoXCounter, 1.0, 0, 3U, |
| 8154 | chartInstance->c1_autoXCounter <= 1) != 0U, chartInstance->c1_sfEvent)) |
| 8155 | != 0); |
| 8156 | if (c1_c_out) { |
| 8157 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 159U, chartInstance->c1_sfEvent); |
| 8158 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 160U, |
| 8159 | chartInstance->c1_sfEvent); |
| 8160 | c1_c_temp = _SFD_CCP_CALL(5U, 160U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 8161 | 160U, 0, (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 8162 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] |
| 8163 | != chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 8164 | if (c1_c_temp) { |
| 8165 | c1_c_temp = _SFD_CCP_CALL(5U, 160U, 1, ((*chartInstance->c1_autoXCom) |
| 8166 | [1] == AUTOX_GO) != 0U, chartInstance->c1_sfEvent); |
| 8167 | } |
| 8168 | |
| 8169 | c1_d_temp = c1_c_temp; |
| 8170 | if (c1_d_temp) { |
| 8171 | c1_i51 = c1_getAutoXParam(chartInstance, |
| 8172 | autoX_params_AUTOX_TPS_START_LIMIT); |
| 8173 | c1_d_temp = _SFD_CCP_CALL(5U, 160U, 2, (boolean_T)CV_RELATIONAL_EVAL |
| 8174 | (5U, 160U, 1, (real_T)*chartInstance->c1_currTps, (real_T)c1_i51, 0, |
| 8175 | 5U, *chartInstance->c1_currTps >= c1_i51) != 0U, |
| 8176 | chartInstance->c1_sfEvent); |
| 8177 | } |
| 8178 | |
| 8179 | c1_e_out = (CV_TRANSITION_EVAL(160U, (int32_T)c1_d_temp) != 0); |
| 8180 | if (c1_e_out) { |
| 8181 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 160U, chartInstance->c1_sfEvent); |
| 8182 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 8183 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 8184 | &chartInstance->c1_lastAutoXCom); |
| 8185 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 8186 | chartInstance->c1_b_tp_READY = 0U; |
| 8187 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8188 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8189 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8190 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8191 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8192 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8193 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8194 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8195 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8196 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8197 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8198 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8199 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START_RELEASE) { |
| 8200 | } else { |
| 8201 | chartInstance->c1_b_is_ACTIVE = c1_IN_START_RELEASE; |
| 8202 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8203 | &chartInstance->c1_b_is_ACTIVE); |
| 8204 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8205 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8206 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8207 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8208 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8209 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8210 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8211 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8212 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8213 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8214 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 21); |
| 8215 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 4); |
| 8216 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 3); |
| 8217 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 3); |
| 8218 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 8219 | chartInstance->c1_b_tp_START_RELEASE = 1U; |
| 8220 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_GO; |
| 8221 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 8222 | chartInstance->c1_stateFb); |
| 8223 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 8224 | chartInstance->c1_autoX_clutchValue = (real_T)c1_getAutoXParam |
| 8225 | (chartInstance, autoX_params_AUTOX_RAMP_START); |
| 8226 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 64, 959U, (void *) |
| 8227 | &chartInstance->c1_autoX_clutchValue); |
| 8228 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchValue, 10U); |
| 8229 | c1_d3 = chartInstance->c1_autoX_clutchValue; |
| 8230 | c1_b_covSaturation = false; |
| 8231 | if (c1_d3 < 256.0) { |
| 8232 | if (c1_d3 >= 0.0) { |
| 8233 | c1_u10 = (uint8_T)c1_d3; |
| 8234 | } else { |
| 8235 | c1_b_covSaturation = true; |
| 8236 | c1_u10 = 0U; |
| 8237 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 121U, 5U); |
| 8238 | } |
| 8239 | } else if (c1_d3 >= 256.0) { |
| 8240 | c1_b_covSaturation = true; |
| 8241 | c1_u10 = MAX_uint8_T; |
| 8242 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 121U, 5U); |
| 8243 | } else { |
| 8244 | c1_u10 = 0U; |
| 8245 | } |
| 8246 | |
| 8247 | CV_SATURATION_EVAL(4, 69, 0, 0, c1_b_covSaturation); |
| 8248 | c1_Clutch_setValue(chartInstance, c1_u10); |
| 8249 | chartInstance->c1_autoX_dtRelease = c1_div_nzp_s32(chartInstance, |
| 8250 | c1_getAutoXParam(chartInstance, autoX_params_AUTOX_RAMP_TIME), |
| 8251 | (int32_T)c1_const_AUTOX_WORK_RATE_ms, 1001U, 198, 1); |
| 8252 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 66, 961U, (void *) |
| 8253 | &chartInstance->c1_autoX_dtRelease); |
| 8254 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoX_dtRelease, 11U); |
| 8255 | c1_q0 = c1_getAutoXParam(chartInstance, |
| 8256 | autoX_params_AUTOX_RAMP_START); |
| 8257 | c1_q1 = c1_getAutoXParam(chartInstance, autoX_params_AUTOX_RAMP_END); |
| 8258 | c1_c_covSaturation = false; |
| 8259 | if ((c1_q0 >= 0) && (c1_q1 < c1_q0 - MAX_int32_T)) { |
| 8260 | c1_c_covSaturation = true; |
| 8261 | c1_qY = MAX_int32_T; |
| 8262 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 287U, 1U); |
| 8263 | } else if ((c1_q0 < 0) && (c1_q1 > c1_q0 - MIN_int32_T)) { |
| 8264 | c1_c_covSaturation = true; |
| 8265 | c1_qY = MIN_int32_T; |
| 8266 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 287U, 1U); |
| 8267 | } else { |
| 8268 | c1_qY = c1_q0 - c1_q1; |
| 8269 | } |
| 8270 | |
| 8271 | CV_SATURATION_EVAL(4, 69, 1, 0, c1_c_covSaturation); |
| 8272 | c1_i52 = (int64_T)c1_qY * (int64_T)c1_const_AUTOX_WORK_RATE_ms; |
| 8273 | c1_d_covSaturation = false; |
| 8274 | if (c1_i52 > 2147483647LL) { |
| 8275 | c1_d_covSaturation = true; |
| 8276 | c1_i52 = 2147483647LL; |
| 8277 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 320U, 1U); |
| 8278 | } else { |
| 8279 | if (c1_i52 < -2147483648LL) { |
| 8280 | c1_d_covSaturation = true; |
| 8281 | c1_i52 = -2147483648LL; |
| 8282 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 320U, 1U); |
| 8283 | } |
| 8284 | } |
| 8285 | |
| 8286 | CV_SATURATION_EVAL(4, 69, 2, 0, c1_d_covSaturation); |
| 8287 | chartInstance->c1_autoX_clutchStep = (real_T)(int32_T)c1_i52 / |
| 8288 | (real_T)c1_getAutoXParam(chartInstance, |
| 8289 | autoX_params_AUTOX_RAMP_TIME); |
| 8290 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 65, 960U, (void *) |
| 8291 | &chartInstance->c1_autoX_clutchStep); |
| 8292 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchStep, 9U); |
| 8293 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 8294 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8295 | &chartInstance->c1_autoXCounter); |
| 8296 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8297 | } |
| 8298 | } else { |
| 8299 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 157U, chartInstance->c1_sfEvent); |
| 8300 | chartInstance->c1_b_tp_READY = 0U; |
| 8301 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8302 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8303 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8304 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8305 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8306 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8307 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8308 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8309 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8310 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8311 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8312 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8313 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_READY) { |
| 8314 | } else { |
| 8315 | chartInstance->c1_b_is_ACTIVE = c1_IN_READY; |
| 8316 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8317 | &chartInstance->c1_b_is_ACTIVE); |
| 8318 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8319 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8320 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8321 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8322 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8323 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8324 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8325 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8326 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8327 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8328 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 8329 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 3); |
| 8330 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 2); |
| 8331 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 2); |
| 8332 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8333 | chartInstance->c1_b_tp_READY = 1U; |
| 8334 | c1_b_enter_atomic_READY(chartInstance); |
| 8335 | } |
| 8336 | } |
| 8337 | } else { |
| 8338 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 65U, |
| 8339 | chartInstance->c1_sfEvent); |
| 8340 | c1_i50 = c1__s32_minus__(chartInstance, (int32_T) |
| 8341 | chartInstance->c1_autoXCounter, 1, 999U, 139, 1); |
| 8342 | c1_covSaturation = false; |
| 8343 | if (c1_i50 < 0) { |
| 8344 | c1_covSaturation = true; |
| 8345 | c1_i50 = 0; |
| 8346 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 999U, 139U, 1U); |
| 8347 | } else { |
| 8348 | if (c1_i50 > 65535) { |
| 8349 | c1_i50 = 65535; |
| 8350 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 999U, 139U, 1U); |
| 8351 | } |
| 8352 | |
| 8353 | CV_SATURATION_EVAL(4, 65, 0, 0, c1_covSaturation); |
| 8354 | } |
| 8355 | |
| 8356 | chartInstance->c1_autoXCounter = (uint16_T)c1_i50; |
| 8357 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8358 | &chartInstance->c1_autoXCounter); |
| 8359 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8360 | c1_checkShift(chartInstance); |
| 8361 | } |
| 8362 | |
| 8363 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 65U, chartInstance->c1_sfEvent); |
| 8364 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8365 | break; |
| 8366 | |
| 8367 | case c1_IN_RELEASING: |
| 8368 | CV_STATE_EVAL(64, 0, c1_IN_RELEASING); |
| 8369 | c1_b_RELEASING(chartInstance); |
| 8370 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8371 | break; |
| 8372 | |
| 8373 | case c1_IN_RUNNING: |
| 8374 | CV_STATE_EVAL(64, 0, c1_IN_RUNNING); |
| 8375 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 154U, |
| 8376 | chartInstance->c1_sfEvent); |
| 8377 | c1_i49 = (*chartInstance->c1_autoX_parameters)[(uint8_T) |
| 8378 | sf_array_bounds_check(sfGlobalDebugInstanceStruct, chartInstance->S, |
| 8379 | 977U, 13, 16, 32U, (int32_T)c1__u8_s32_(chartInstance, (int32_T) |
| 8380 | autoX_params_AUTOX_END_GEAR, 977U, 13, 16), 0, 15)]; |
| 8381 | c1_b_temp = _SFD_CCP_CALL(5U, 154U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 8382 | 154U, 0, (real_T)*chartInstance->c1_currGear, (real_T)c1_i49, 0, 5U, |
| 8383 | *chartInstance->c1_currGear >= c1_i49) != 0U, chartInstance->c1_sfEvent); |
| 8384 | if (c1_b_temp) { |
| 8385 | c1_b_temp = _SFD_CCP_CALL(5U, 154U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 8386 | 154U, 1, (real_T)*chartInstance->c1_currGear, 8.0, 0, 1U, |
| 8387 | *chartInstance->c1_currGear != 8) != 0U, chartInstance->c1_sfEvent); |
| 8388 | } |
| 8389 | |
| 8390 | c1_d_out = (CV_TRANSITION_EVAL(154U, (int32_T)c1_b_temp) != 0); |
| 8391 | if (c1_d_out) { |
| 8392 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 154U, chartInstance->c1_sfEvent); |
| 8393 | chartInstance->c1_b_tp_RUNNING = 0U; |
| 8394 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8395 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8396 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8397 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8398 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8399 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8400 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8401 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8402 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8403 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8404 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8405 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 8406 | chartInstance->c1_b_tp_ACTIVE = 0U; |
| 8407 | chartInstance->c1_is_LAUNCH = c1_IN_NO_ACTIVE_CHILD; |
| 8408 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8409 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8410 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8411 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8412 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 0); |
| 8413 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8414 | &chartInstance->c1_b_is_ACTIVE); |
| 8415 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 8416 | if (chartInstance->c1_is_LAUNCH == c1_IN_STOPPING) { |
| 8417 | } else { |
| 8418 | chartInstance->c1_is_LAUNCH = c1_IN_STOPPING; |
| 8419 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 8420 | &chartInstance->c1_is_LAUNCH); |
| 8421 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 8422 | (chartInstance->c1_is_LAUNCH == 1)); |
| 8423 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 8424 | (chartInstance->c1_is_LAUNCH == 2)); |
| 8425 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 8426 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 7); |
| 8427 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 6); |
| 8428 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 8429 | chartInstance->c1_b_tp_STOPPING = 1U; |
| 8430 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 8431 | c1_Clutch_setValue(chartInstance, 0U); |
| 8432 | } |
| 8433 | } else { |
| 8434 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 67U, |
| 8435 | chartInstance->c1_sfEvent); |
| 8436 | c1_autoXCheckShift(chartInstance); |
| 8437 | } |
| 8438 | |
| 8439 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 67U, chartInstance->c1_sfEvent); |
| 8440 | if (chartInstance->c1_is_LAUNCH != c1_IN_ACTIVE) { |
| 8441 | } else { |
| 8442 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8443 | } |
| 8444 | break; |
| 8445 | |
| 8446 | case c1_IN_START: |
| 8447 | CV_STATE_EVAL(64, 0, c1_IN_START); |
| 8448 | c1_b_START(chartInstance); |
| 8449 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8450 | break; |
| 8451 | |
| 8452 | case c1_IN_START_RELEASE: |
| 8453 | CV_STATE_EVAL(64, 0, c1_IN_START_RELEASE); |
| 8454 | c1_b_START_RELEASE(chartInstance); |
| 8455 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8456 | break; |
| 8457 | |
| 8458 | default: |
| 8459 | CV_STATE_EVAL(64, 0, 0); |
| 8460 | |
| 8461 | /* Unreachable state, for coverage only */ |
| 8462 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8463 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8464 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8465 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8466 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8467 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8468 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8469 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8470 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8471 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8472 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8473 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8474 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 64U, chartInstance->c1_sfEvent); |
| 8475 | break; |
| 8476 | } |
| 8477 | } |
| 8478 | } |
| 8479 | |
| 8480 | static void c1_b_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 8481 | *chartInstance) |
| 8482 | { |
| 8483 | switch (chartInstance->c1_b_is_ACTIVE) { |
| 8484 | case c1_IN_READY: |
| 8485 | CV_STATE_EVAL(64, 1, c1_IN_READY); |
| 8486 | chartInstance->c1_b_tp_READY = 0U; |
| 8487 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8488 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8489 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8490 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8491 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8492 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8493 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8494 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8495 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8496 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8497 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8498 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8499 | break; |
| 8500 | |
| 8501 | case c1_IN_RELEASING: |
| 8502 | CV_STATE_EVAL(64, 1, c1_IN_RELEASING); |
| 8503 | chartInstance->c1_b_tp_RELEASING = 0U; |
| 8504 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8505 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8506 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8507 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8508 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8509 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8510 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8511 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8512 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8513 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8514 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8515 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 8516 | break; |
| 8517 | |
| 8518 | case c1_IN_RUNNING: |
| 8519 | CV_STATE_EVAL(64, 1, c1_IN_RUNNING); |
| 8520 | chartInstance->c1_b_tp_RUNNING = 0U; |
| 8521 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8522 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8523 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8524 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8525 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8526 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8527 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8528 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8529 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8530 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8531 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8532 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 8533 | break; |
| 8534 | |
| 8535 | case c1_IN_START: |
| 8536 | CV_STATE_EVAL(64, 1, c1_IN_START); |
| 8537 | chartInstance->c1_b_tp_START = 0U; |
| 8538 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8539 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8540 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8541 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8542 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8543 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8544 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8545 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8546 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8547 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8548 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8549 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 8550 | break; |
| 8551 | |
| 8552 | case c1_IN_START_RELEASE: |
| 8553 | CV_STATE_EVAL(64, 1, c1_IN_START_RELEASE); |
| 8554 | chartInstance->c1_b_tp_START_RELEASE = 0U; |
| 8555 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8556 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8557 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8558 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8559 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8560 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8561 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8562 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8563 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8564 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8565 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8566 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 8567 | break; |
| 8568 | |
| 8569 | default: |
| 8570 | CV_STATE_EVAL(64, 1, 0); |
| 8571 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8572 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8573 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8574 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8575 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8576 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8577 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8578 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8579 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8580 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8581 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8582 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8583 | break; |
| 8584 | } |
| 8585 | } |
| 8586 | |
| 8587 | static void c1_b_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 8588 | { |
| 8589 | boolean_T c1_b_out; |
| 8590 | int32_T c1_i53; |
| 8591 | boolean_T c1_covSaturation; |
| 8592 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 158U, chartInstance->c1_sfEvent); |
| 8593 | c1_b_out = (CV_TRANSITION_EVAL(158U, (int32_T)_SFD_CCP_CALL(5U, 158U, 0, |
| 8594 | (boolean_T)CV_RELATIONAL_EVAL(5U, 158U, 0, (real_T) |
| 8595 | chartInstance->c1_autoXCounter, 1.0, 0, 3U, chartInstance->c1_autoXCounter <= |
| 8596 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 8597 | if (c1_b_out) { |
| 8598 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 158U, chartInstance->c1_sfEvent); |
| 8599 | chartInstance->c1_b_tp_START = 0U; |
| 8600 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8601 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8602 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8603 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8604 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8605 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8606 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8607 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8608 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8609 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8610 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8611 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 8612 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_READY) { |
| 8613 | } else { |
| 8614 | chartInstance->c1_b_is_ACTIVE = c1_IN_READY; |
| 8615 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8616 | &chartInstance->c1_b_is_ACTIVE); |
| 8617 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8618 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8619 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8620 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8621 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8622 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8623 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8624 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8625 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8626 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8627 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 8628 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 3); |
| 8629 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 2); |
| 8630 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 2); |
| 8631 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 8632 | chartInstance->c1_b_tp_READY = 1U; |
| 8633 | c1_b_enter_atomic_READY(chartInstance); |
| 8634 | } |
| 8635 | } else { |
| 8636 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 68U, chartInstance->c1_sfEvent); |
| 8637 | c1_i53 = c1__s32_minus__(chartInstance, (int32_T) |
| 8638 | chartInstance->c1_autoXCounter, 1, 998U, 165, 1); |
| 8639 | c1_covSaturation = false; |
| 8640 | if (c1_i53 < 0) { |
| 8641 | c1_covSaturation = true; |
| 8642 | c1_i53 = 0; |
| 8643 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 998U, 165U, 1U); |
| 8644 | } else { |
| 8645 | if (c1_i53 > 65535) { |
| 8646 | c1_i53 = 65535; |
| 8647 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 998U, 165U, 1U); |
| 8648 | } |
| 8649 | |
| 8650 | CV_SATURATION_EVAL(4, 68, 0, 0, c1_covSaturation); |
| 8651 | } |
| 8652 | |
| 8653 | chartInstance->c1_autoXCounter = (uint16_T)c1_i53; |
| 8654 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8655 | &chartInstance->c1_autoXCounter); |
| 8656 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8657 | } |
| 8658 | |
| 8659 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 68U, chartInstance->c1_sfEvent); |
| 8660 | } |
| 8661 | |
| 8662 | static void c1_b_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 8663 | *chartInstance) |
| 8664 | { |
| 8665 | uint16_T c1_u11; |
| 8666 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_READY; |
| 8667 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 8668 | chartInstance->c1_stateFb); |
| 8669 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 8670 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 8671 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8672 | &chartInstance->c1_autoXCounter); |
| 8673 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8674 | c1_u11 = chartInstance->c1_autoXCounter; |
| 8675 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 8676 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u11); |
| 8677 | c1_Clutch_setValue(chartInstance, 100U); |
| 8678 | c1_checkShift(chartInstance); |
| 8679 | } |
| 8680 | |
| 8681 | static void c1_b_START_RELEASE(SFc1_GCU_Model_genCodeInstanceStruct |
| 8682 | *chartInstance) |
| 8683 | { |
| 8684 | boolean_T c1_b_out; |
| 8685 | int32_T c1_i54; |
| 8686 | boolean_T c1_covSaturation; |
| 8687 | real_T c1_d4; |
| 8688 | boolean_T c1_b_covSaturation; |
| 8689 | uint8_T c1_u12; |
| 8690 | int32_T c1_q0; |
| 8691 | int32_T c1_q1; |
| 8692 | boolean_T c1_c_covSaturation; |
| 8693 | int32_T c1_qY; |
| 8694 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 161U, chartInstance->c1_sfEvent); |
| 8695 | c1_b_out = (CV_TRANSITION_EVAL(161U, (int32_T)_SFD_CCP_CALL(5U, 161U, 0, |
| 8696 | (boolean_T)CV_RELATIONAL_EVAL(5U, 161U, 0, (real_T) |
| 8697 | chartInstance->c1_autoXCounter, 1.0, 0, 3U, chartInstance->c1_autoXCounter <= |
| 8698 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 8699 | if (c1_b_out) { |
| 8700 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 161U, chartInstance->c1_sfEvent); |
| 8701 | chartInstance->c1_b_tp_START_RELEASE = 0U; |
| 8702 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8703 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8704 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8705 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8706 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8707 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8708 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8709 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8710 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8711 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8712 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8713 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 8714 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RELEASING) { |
| 8715 | } else { |
| 8716 | chartInstance->c1_b_is_ACTIVE = c1_IN_RELEASING; |
| 8717 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8718 | &chartInstance->c1_b_is_ACTIVE); |
| 8719 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8720 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8721 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8722 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8723 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8724 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8725 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8726 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8727 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8728 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8729 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 22); |
| 8730 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 5); |
| 8731 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 4); |
| 8732 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 4); |
| 8733 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 8734 | chartInstance->c1_b_tp_RELEASING = 1U; |
| 8735 | chartInstance->c1_autoX_clutchValue -= chartInstance->c1_autoX_clutchStep; |
| 8736 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 64, 959U, (void *) |
| 8737 | &chartInstance->c1_autoX_clutchValue); |
| 8738 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchValue, 10U); |
| 8739 | c1_d4 = chartInstance->c1_autoX_clutchValue; |
| 8740 | c1_b_covSaturation = false; |
| 8741 | if (c1_d4 < 256.0) { |
| 8742 | if (c1_d4 >= 0.0) { |
| 8743 | c1_u12 = (uint8_T)c1_d4; |
| 8744 | } else { |
| 8745 | c1_b_covSaturation = true; |
| 8746 | c1_u12 = 0U; |
| 8747 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 93U, 5U); |
| 8748 | } |
| 8749 | } else if (c1_d4 >= 256.0) { |
| 8750 | c1_b_covSaturation = true; |
| 8751 | c1_u12 = MAX_uint8_T; |
| 8752 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 93U, 5U); |
| 8753 | } else { |
| 8754 | c1_u12 = 0U; |
| 8755 | } |
| 8756 | |
| 8757 | CV_SATURATION_EVAL(4, 66, 2, 0, c1_b_covSaturation); |
| 8758 | c1_Clutch_setValue(chartInstance, c1_u12); |
| 8759 | c1_q0 = chartInstance->c1_autoX_dtRelease; |
| 8760 | c1_q1 = 1; |
| 8761 | c1_c_covSaturation = false; |
| 8762 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 8763 | c1_c_covSaturation = true; |
| 8764 | c1_qY = MAX_int32_T; |
| 8765 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 155U, 1U); |
| 8766 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 8767 | c1_c_covSaturation = true; |
| 8768 | c1_qY = MIN_int32_T; |
| 8769 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 155U, 1U); |
| 8770 | } else { |
| 8771 | c1_qY = c1_q0 - c1_q1; |
| 8772 | } |
| 8773 | |
| 8774 | CV_SATURATION_EVAL(4, 66, 0, 0, c1_c_covSaturation); |
| 8775 | chartInstance->c1_autoX_dtRelease = c1_qY; |
| 8776 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 66, 961U, (void *) |
| 8777 | &chartInstance->c1_autoX_dtRelease); |
| 8778 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoX_dtRelease, 11U); |
| 8779 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 8780 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8781 | &chartInstance->c1_autoXCounter); |
| 8782 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8783 | } |
| 8784 | } else { |
| 8785 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 69U, chartInstance->c1_sfEvent); |
| 8786 | c1_i54 = c1__s32_minus__(chartInstance, (int32_T) |
| 8787 | chartInstance->c1_autoXCounter, 1, 1001U, 464, 1); |
| 8788 | c1_covSaturation = false; |
| 8789 | if (c1_i54 < 0) { |
| 8790 | c1_covSaturation = true; |
| 8791 | c1_i54 = 0; |
| 8792 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 464U, 1U); |
| 8793 | } else { |
| 8794 | if (c1_i54 > 65535) { |
| 8795 | c1_i54 = 65535; |
| 8796 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1001U, 464U, 1U); |
| 8797 | } |
| 8798 | |
| 8799 | CV_SATURATION_EVAL(4, 69, 3, 0, c1_covSaturation); |
| 8800 | } |
| 8801 | |
| 8802 | chartInstance->c1_autoXCounter = (uint16_T)c1_i54; |
| 8803 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8804 | &chartInstance->c1_autoXCounter); |
| 8805 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8806 | } |
| 8807 | |
| 8808 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 69U, chartInstance->c1_sfEvent); |
| 8809 | } |
| 8810 | |
| 8811 | static void c1_b_RELEASING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 8812 | { |
| 8813 | boolean_T c1_b_out; |
| 8814 | int32_T c1_i55; |
| 8815 | boolean_T c1_covSaturation; |
| 8816 | boolean_T c1_temp; |
| 8817 | int32_T c1_i56; |
| 8818 | boolean_T c1_c_out; |
| 8819 | real_T c1_d5; |
| 8820 | boolean_T c1_b_covSaturation; |
| 8821 | uint16_T c1_u13; |
| 8822 | uint8_T c1_u14; |
| 8823 | uint16_T c1_u15; |
| 8824 | boolean_T c1_c_covSaturation; |
| 8825 | int32_T c1_q0; |
| 8826 | int32_T c1_q1; |
| 8827 | boolean_T c1_d_covSaturation; |
| 8828 | int32_T c1_qY; |
| 8829 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 164U, chartInstance->c1_sfEvent); |
| 8830 | c1_b_out = (CV_TRANSITION_EVAL(164U, (int32_T)_SFD_CCP_CALL(5U, 164U, 0, |
| 8831 | (boolean_T)CV_RELATIONAL_EVAL(5U, 164U, 0, (real_T) |
| 8832 | chartInstance->c1_autoXCounter, 1.0, 0, 3U, chartInstance->c1_autoXCounter <= |
| 8833 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 8834 | if (c1_b_out) { |
| 8835 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 164U, chartInstance->c1_sfEvent); |
| 8836 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 162U, |
| 8837 | chartInstance->c1_sfEvent); |
| 8838 | c1_temp = _SFD_CCP_CALL(5U, 162U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 162U, |
| 8839 | 0, (real_T)chartInstance->c1_autoX_dtRelease, 0.0, 0, 3U, |
| 8840 | chartInstance->c1_autoX_dtRelease <= 0) != 0U, chartInstance->c1_sfEvent); |
| 8841 | if (!c1_temp) { |
| 8842 | c1_i56 = c1_getAutoXParam(chartInstance, autoX_params_AUTOX_RAMP_END); |
| 8843 | c1_temp = _SFD_CCP_CALL(5U, 162U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 8844 | 162U, 1, (real_T)*chartInstance->c1_clutchCurrVal, (real_T)c1_i56, 0, 3U, |
| 8845 | *chartInstance->c1_clutchCurrVal <= c1_i56) != 0U, |
| 8846 | chartInstance->c1_sfEvent); |
| 8847 | } |
| 8848 | |
| 8849 | c1_c_out = (CV_TRANSITION_EVAL(162U, (int32_T)c1_temp) != 0); |
| 8850 | if (c1_c_out) { |
| 8851 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 162U, chartInstance->c1_sfEvent); |
| 8852 | c1_Clutch_setValue(chartInstance, 0U); |
| 8853 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 8854 | chartInstance->c1_b_tp_RELEASING = 0U; |
| 8855 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8856 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8857 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8858 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8859 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8860 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8861 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8862 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8863 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8864 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8865 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8866 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 8867 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RUNNING) { |
| 8868 | } else { |
| 8869 | chartInstance->c1_b_is_ACTIVE = c1_IN_RUNNING; |
| 8870 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8871 | &chartInstance->c1_b_is_ACTIVE); |
| 8872 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8873 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8874 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8875 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8876 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8877 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8878 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8879 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8880 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8881 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8882 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 23); |
| 8883 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 6); |
| 8884 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 5); |
| 8885 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 5); |
| 8886 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 8887 | chartInstance->c1_b_tp_RUNNING = 1U; |
| 8888 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 8889 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8890 | &chartInstance->c1_autoXCounter); |
| 8891 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8892 | c1_u13 = chartInstance->c1_autoXCounter; |
| 8893 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 8894 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, |
| 8895 | c1_u13); |
| 8896 | c1_u15 = *chartInstance->c1_currGear; |
| 8897 | c1_c_covSaturation = false; |
| 8898 | if (c1_u15 > 255) { |
| 8899 | c1_c_covSaturation = true; |
| 8900 | c1_u15 = 255U; |
| 8901 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1002U, 64U, 8U); |
| 8902 | } |
| 8903 | |
| 8904 | CV_SATURATION_EVAL(4, 67, 0, 0, c1_c_covSaturation); |
| 8905 | chartInstance->c1_lastShift = (uint8_T)c1_u15; |
| 8906 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 8907 | &chartInstance->c1_lastShift); |
| 8908 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 8909 | c1_autoXCheckShift(chartInstance); |
| 8910 | } |
| 8911 | } else { |
| 8912 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 163U, chartInstance->c1_sfEvent); |
| 8913 | chartInstance->c1_b_tp_RELEASING = 0U; |
| 8914 | chartInstance->c1_b_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 8915 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8916 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8917 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8918 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8919 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8920 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8921 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8922 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8923 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8924 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8925 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 8926 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_RELEASING) { |
| 8927 | } else { |
| 8928 | chartInstance->c1_b_is_ACTIVE = c1_IN_RELEASING; |
| 8929 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 8930 | &chartInstance->c1_b_is_ACTIVE); |
| 8931 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 8932 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 8933 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 8934 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 8935 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 8936 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 8937 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 8938 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 8939 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 8940 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 8941 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 22); |
| 8942 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 5); |
| 8943 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 4); |
| 8944 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 4); |
| 8945 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 8946 | chartInstance->c1_b_tp_RELEASING = 1U; |
| 8947 | chartInstance->c1_autoX_clutchValue -= |
| 8948 | chartInstance->c1_autoX_clutchStep; |
| 8949 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 64, 959U, (void *) |
| 8950 | &chartInstance->c1_autoX_clutchValue); |
| 8951 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchValue, 10U); |
| 8952 | c1_d5 = chartInstance->c1_autoX_clutchValue; |
| 8953 | c1_b_covSaturation = false; |
| 8954 | if (c1_d5 < 256.0) { |
| 8955 | if (c1_d5 >= 0.0) { |
| 8956 | c1_u14 = (uint8_T)c1_d5; |
| 8957 | } else { |
| 8958 | c1_b_covSaturation = true; |
| 8959 | c1_u14 = 0U; |
| 8960 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 93U, 5U); |
| 8961 | } |
| 8962 | } else if (c1_d5 >= 256.0) { |
| 8963 | c1_b_covSaturation = true; |
| 8964 | c1_u14 = MAX_uint8_T; |
| 8965 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 93U, 5U); |
| 8966 | } else { |
| 8967 | c1_u14 = 0U; |
| 8968 | } |
| 8969 | |
| 8970 | CV_SATURATION_EVAL(4, 66, 2, 0, c1_b_covSaturation); |
| 8971 | c1_Clutch_setValue(chartInstance, c1_u14); |
| 8972 | c1_q0 = chartInstance->c1_autoX_dtRelease; |
| 8973 | c1_q1 = 1; |
| 8974 | c1_d_covSaturation = false; |
| 8975 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 8976 | c1_d_covSaturation = true; |
| 8977 | c1_qY = MAX_int32_T; |
| 8978 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 155U, 1U); |
| 8979 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 8980 | c1_d_covSaturation = true; |
| 8981 | c1_qY = MIN_int32_T; |
| 8982 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 155U, 1U); |
| 8983 | } else { |
| 8984 | c1_qY = c1_q0 - c1_q1; |
| 8985 | } |
| 8986 | |
| 8987 | CV_SATURATION_EVAL(4, 66, 0, 0, c1_d_covSaturation); |
| 8988 | chartInstance->c1_autoX_dtRelease = c1_qY; |
| 8989 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 66, 961U, (void *) |
| 8990 | &chartInstance->c1_autoX_dtRelease); |
| 8991 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoX_dtRelease, 11U); |
| 8992 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 8993 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 8994 | &chartInstance->c1_autoXCounter); |
| 8995 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 8996 | } |
| 8997 | } |
| 8998 | } else { |
| 8999 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 66U, chartInstance->c1_sfEvent); |
| 9000 | c1_i55 = c1__s32_minus__(chartInstance, (int32_T) |
| 9001 | chartInstance->c1_autoXCounter, 1, 1025U, 233, 1); |
| 9002 | c1_covSaturation = false; |
| 9003 | if (c1_i55 < 0) { |
| 9004 | c1_covSaturation = true; |
| 9005 | c1_i55 = 0; |
| 9006 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 233U, 1U); |
| 9007 | } else { |
| 9008 | if (c1_i55 > 65535) { |
| 9009 | c1_i55 = 65535; |
| 9010 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1025U, 233U, 1U); |
| 9011 | } |
| 9012 | |
| 9013 | CV_SATURATION_EVAL(4, 66, 1, 0, c1_covSaturation); |
| 9014 | } |
| 9015 | |
| 9016 | chartInstance->c1_autoXCounter = (uint16_T)c1_i55; |
| 9017 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 9018 | &chartInstance->c1_autoXCounter); |
| 9019 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 9020 | } |
| 9021 | |
| 9022 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 66U, chartInstance->c1_sfEvent); |
| 9023 | } |
| 9024 | |
| 9025 | static void c1_b_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 9026 | { |
| 9027 | boolean_T c1_temp; |
| 9028 | boolean_T c1_b_out; |
| 9029 | uint16_T c1_u16; |
| 9030 | uint16_T c1_u17; |
| 9031 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 152U, chartInstance->c1_sfEvent); |
| 9032 | c1_temp = _SFD_CCP_CALL(5U, 152U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 152U, 0, |
| 9033 | (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 9034 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] != |
| 9035 | chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 9036 | if (c1_temp) { |
| 9037 | c1_temp = _SFD_CCP_CALL(5U, 152U, 1, ((*chartInstance->c1_autoXCom)[1] == |
| 9038 | AUTOX_READY) != 0U, chartInstance->c1_sfEvent); |
| 9039 | } |
| 9040 | |
| 9041 | c1_b_out = (CV_TRANSITION_EVAL(152U, (int32_T)c1_temp) != 0); |
| 9042 | if (c1_b_out) { |
| 9043 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 152U, chartInstance->c1_sfEvent); |
| 9044 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 9045 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 9046 | &chartInstance->c1_lastAutoXCom); |
| 9047 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 9048 | c1_u16 = chartInstance->c1_lastAutoXCom; |
| 9049 | sf_mex_printf("%s =\\n", "lastAutoXCom"); |
| 9050 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u16); |
| 9051 | chartInstance->c1_b_tp_DEFAULT = 0U; |
| 9052 | chartInstance->c1_is_AUTOCROSS = c1_IN_NO_ACTIVE_CHILD; |
| 9053 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 9054 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 9055 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 9056 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 9057 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 9058 | chartInstance->c1_is_AUTOCROSS = c1_IN_LAUNCH; |
| 9059 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 9060 | &chartInstance->c1_is_AUTOCROSS); |
| 9061 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 9062 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 9063 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 9064 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 9065 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 9066 | chartInstance->c1_tp_LAUNCH = 1U; |
| 9067 | chartInstance->c1_autoXCounter = 0U; |
| 9068 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 9069 | &chartInstance->c1_autoXCounter); |
| 9070 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 9071 | chartInstance->c1_autoX_clutchValue = 0.0; |
| 9072 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 64, 959U, (void *) |
| 9073 | &chartInstance->c1_autoX_clutchValue); |
| 9074 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchValue, 10U); |
| 9075 | chartInstance->c1_autoX_clutchStep = 0.0; |
| 9076 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 65, 960U, (void *) |
| 9077 | &chartInstance->c1_autoX_clutchStep); |
| 9078 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_autoX_clutchStep, 9U); |
| 9079 | chartInstance->c1_autoX_dtRelease = 0; |
| 9080 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 66, 961U, (void *) |
| 9081 | &chartInstance->c1_autoX_dtRelease); |
| 9082 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoX_dtRelease, 11U); |
| 9083 | chartInstance->c1_is_LAUNCH = c1_IN_ACTIVE; |
| 9084 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 9085 | &chartInstance->c1_is_LAUNCH); |
| 9086 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 9087 | (chartInstance->c1_is_LAUNCH == 1)); |
| 9088 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 9089 | (chartInstance->c1_is_LAUNCH == 2)); |
| 9090 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 9091 | chartInstance->c1_b_tp_ACTIVE = 1U; |
| 9092 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 156U, chartInstance->c1_sfEvent); |
| 9093 | if (chartInstance->c1_b_is_ACTIVE == c1_IN_START) { |
| 9094 | } else { |
| 9095 | chartInstance->c1_b_is_ACTIVE = c1_IN_START; |
| 9096 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 9097 | &chartInstance->c1_b_is_ACTIVE); |
| 9098 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 9099 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 9100 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 9101 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 9102 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 9103 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 9104 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 9105 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 9106 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 9107 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 9108 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 19); |
| 9109 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 22, 951U, 2); |
| 9110 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 24, 974U, 1); |
| 9111 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 25, 985U, 1); |
| 9112 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 9113 | chartInstance->c1_b_tp_START = 1U; |
| 9114 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_READY; |
| 9115 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9116 | chartInstance->c1_stateFb); |
| 9117 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9118 | chartInstance->c1_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 9119 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 9120 | &chartInstance->c1_autoXCounter); |
| 9121 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_autoXCounter, 8U); |
| 9122 | c1_u17 = chartInstance->c1_autoXCounter; |
| 9123 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 9124 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u17); |
| 9125 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 9126 | c1_Clutch_setValue(chartInstance, 100U); |
| 9127 | } |
| 9128 | } else { |
| 9129 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 62U, chartInstance->c1_sfEvent); |
| 9130 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_DEFAULT; |
| 9131 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9132 | chartInstance->c1_stateFb); |
| 9133 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9134 | c1_checkShift(chartInstance); |
| 9135 | c1_checkClutch(chartInstance); |
| 9136 | } |
| 9137 | |
| 9138 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 62U, chartInstance->c1_sfEvent); |
| 9139 | } |
| 9140 | |
| 9141 | static void c1_enter_internal_ACCELERATION_PID |
| 9142 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 9143 | { |
| 9144 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 184U, chartInstance->c1_sfEvent); |
| 9145 | if (chartInstance->c1_is_ACCELERATION_PID == c1_b_IN_DEFAULT) { |
| 9146 | } else { |
| 9147 | chartInstance->c1_is_ACCELERATION_PID = c1_b_IN_DEFAULT; |
| 9148 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9149 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9150 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9151 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9152 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9153 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9154 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 18); |
| 9155 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 1); |
| 9156 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 9157 | chartInstance->c1_c_tp_DEFAULT = 1U; |
| 9158 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_DEFAULT; |
| 9159 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9160 | chartInstance->c1_stateFb); |
| 9161 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9162 | c1_checkShift(chartInstance); |
| 9163 | c1_checkClutch(chartInstance); |
| 9164 | } |
| 9165 | } |
| 9166 | |
| 9167 | static void c1_ACCELERATION_PID(SFc1_GCU_Model_genCodeInstanceStruct |
| 9168 | *chartInstance) |
| 9169 | { |
| 9170 | boolean_T c1_temp; |
| 9171 | boolean_T c1_b_out; |
| 9172 | boolean_T c1_c_out; |
| 9173 | boolean_T c1_d_out; |
| 9174 | boolean_T c1_e_out; |
| 9175 | boolean_T c1_f_out; |
| 9176 | int32_T c1_i57; |
| 9177 | int32_T c1_i58; |
| 9178 | int32_T c1_i59; |
| 9179 | int32_T c1_i60; |
| 9180 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 187U, chartInstance->c1_sfEvent); |
| 9181 | c1_temp = _SFD_CCP_CALL(5U, 187U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 187U, 0, |
| 9182 | (real_T)(*chartInstance->c1_modeCom)[0], (real_T) |
| 9183 | (*chartInstance->c1_lastModeCom)[0], 0, 1U, (*chartInstance->c1_modeCom)[0] |
| 9184 | != (*chartInstance->c1_lastModeCom)[0]) != 0U, chartInstance->c1_sfEvent); |
| 9185 | if (c1_temp) { |
| 9186 | c1_temp = _SFD_CCP_CALL(5U, 187U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, 187U, |
| 9187 | 1, (real_T)(*chartInstance->c1_modeCom)[1], (real_T) |
| 9188 | (*chartInstance->c1_lastModeCom)[1], 0, 1U, (*chartInstance->c1_modeCom)[1] |
| 9189 | != (*chartInstance->c1_lastModeCom)[1]) != 0U, chartInstance->c1_sfEvent); |
| 9190 | } |
| 9191 | |
| 9192 | c1_b_out = (CV_TRANSITION_EVAL(187U, (int32_T)c1_temp) != 0); |
| 9193 | if (c1_b_out) { |
| 9194 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 187U, chartInstance->c1_sfEvent); |
| 9195 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 9196 | *chartInstance->c1_stateFb = (uint16_T)ACC_OFF; |
| 9197 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9198 | chartInstance->c1_stateFb); |
| 9199 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9200 | c1_Clutch_setValue(chartInstance, 0U); |
| 9201 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 145U, chartInstance->c1_sfEvent); |
| 9202 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 137U, |
| 9203 | chartInstance->c1_sfEvent); |
| 9204 | c1_c_out = (CV_TRANSITION_EVAL(137U, (int32_T)_SFD_CCP_CALL(5U, 137U, 0, |
| 9205 | ((*chartInstance->c1_modeCom)[1] == ENDURANCE_MODE) != 0U, |
| 9206 | chartInstance->c1_sfEvent)) != 0); |
| 9207 | if (c1_c_out) { |
| 9208 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 137U, chartInstance->c1_sfEvent); |
| 9209 | c1_exit_internal_ACCELERATION_PID(chartInstance); |
| 9210 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 9211 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 9212 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9213 | (chartInstance->c1_is_MODES == 1)); |
| 9214 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9215 | (chartInstance->c1_is_MODES == 2)); |
| 9216 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9217 | (chartInstance->c1_is_MODES == 3)); |
| 9218 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9219 | (chartInstance->c1_is_MODES == 4)); |
| 9220 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9221 | (chartInstance->c1_is_MODES == 5)); |
| 9222 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 9223 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9224 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9225 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9226 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 9227 | } else { |
| 9228 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 9229 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 9230 | &chartInstance->c1_is_MODES); |
| 9231 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9232 | (chartInstance->c1_is_MODES == 1)); |
| 9233 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9234 | (chartInstance->c1_is_MODES == 2)); |
| 9235 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9236 | (chartInstance->c1_is_MODES == 3)); |
| 9237 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9238 | (chartInstance->c1_is_MODES == 4)); |
| 9239 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9240 | (chartInstance->c1_is_MODES == 5)); |
| 9241 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 9242 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 9243 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 9244 | } |
| 9245 | |
| 9246 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 9247 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 9248 | &chartInstance->c1_is_MANUAL_MODES); |
| 9249 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 9250 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 9251 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 9252 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 9253 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 9254 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 9255 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 9256 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 9257 | } else { |
| 9258 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 138U, chartInstance->c1_sfEvent); |
| 9259 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 139U, |
| 9260 | chartInstance->c1_sfEvent); |
| 9261 | c1_d_out = (CV_TRANSITION_EVAL(139U, (int32_T)_SFD_CCP_CALL(5U, 139U, 0, |
| 9262 | ((*chartInstance->c1_modeCom)[1] == SKIDPAD_MODE) != 0U, |
| 9263 | chartInstance->c1_sfEvent)) != 0); |
| 9264 | if (c1_d_out) { |
| 9265 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 139U, chartInstance->c1_sfEvent); |
| 9266 | c1_exit_internal_ACCELERATION_PID(chartInstance); |
| 9267 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 9268 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 9269 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9270 | (chartInstance->c1_is_MODES == 1)); |
| 9271 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9272 | (chartInstance->c1_is_MODES == 2)); |
| 9273 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9274 | (chartInstance->c1_is_MODES == 3)); |
| 9275 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9276 | (chartInstance->c1_is_MODES == 4)); |
| 9277 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9278 | (chartInstance->c1_is_MODES == 5)); |
| 9279 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 9280 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9281 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9282 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9283 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 9284 | } else { |
| 9285 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 9286 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 9287 | &chartInstance->c1_is_MODES); |
| 9288 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9289 | (chartInstance->c1_is_MODES == 1)); |
| 9290 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9291 | (chartInstance->c1_is_MODES == 2)); |
| 9292 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9293 | (chartInstance->c1_is_MODES == 3)); |
| 9294 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9295 | (chartInstance->c1_is_MODES == 4)); |
| 9296 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9297 | (chartInstance->c1_is_MODES == 5)); |
| 9298 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 9299 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 9300 | c1_enter_atomic_MANUAL_MODES(chartInstance); |
| 9301 | } |
| 9302 | |
| 9303 | if (chartInstance->c1_is_MANUAL_MODES == c1_IN_SKIDPAD) { |
| 9304 | } else { |
| 9305 | chartInstance->c1_is_MANUAL_MODES = c1_IN_SKIDPAD; |
| 9306 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 9307 | &chartInstance->c1_is_MANUAL_MODES); |
| 9308 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 9309 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 9310 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 9311 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 9312 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 3); |
| 9313 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 2); |
| 9314 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 9315 | chartInstance->c1_tp_SKIDPAD = 1U; |
| 9316 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 9317 | } |
| 9318 | } else { |
| 9319 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 140U, chartInstance->c1_sfEvent); |
| 9320 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 141U, |
| 9321 | chartInstance->c1_sfEvent); |
| 9322 | c1_e_out = (CV_TRANSITION_EVAL(141U, (int32_T)_SFD_CCP_CALL(5U, 141U, 0, |
| 9323 | ((*chartInstance->c1_modeCom)[1] == ACCELERATION_MODE) != 0U, |
| 9324 | chartInstance->c1_sfEvent)) != 0); |
| 9325 | if (c1_e_out) { |
| 9326 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 141U, chartInstance->c1_sfEvent); |
| 9327 | c1_exit_internal_ACCELERATION_PID(chartInstance); |
| 9328 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 9329 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 9330 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9331 | (chartInstance->c1_is_MODES == 1)); |
| 9332 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9333 | (chartInstance->c1_is_MODES == 2)); |
| 9334 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9335 | (chartInstance->c1_is_MODES == 3)); |
| 9336 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9337 | (chartInstance->c1_is_MODES == 4)); |
| 9338 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9339 | (chartInstance->c1_is_MODES == 5)); |
| 9340 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 9341 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9342 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9343 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9344 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION) { |
| 9345 | } else { |
| 9346 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION; |
| 9347 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 9348 | &chartInstance->c1_is_MODES); |
| 9349 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9350 | (chartInstance->c1_is_MODES == 1)); |
| 9351 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9352 | (chartInstance->c1_is_MODES == 2)); |
| 9353 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9354 | (chartInstance->c1_is_MODES == 3)); |
| 9355 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9356 | (chartInstance->c1_is_MODES == 4)); |
| 9357 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9358 | (chartInstance->c1_is_MODES == 5)); |
| 9359 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 9360 | chartInstance->c1_tp_ACCELERATION = 1U; |
| 9361 | c1_enter_atomic_ACCELERATION(chartInstance); |
| 9362 | } |
| 9363 | |
| 9364 | c1_enter_internal_ACCELERATION(chartInstance); |
| 9365 | } else { |
| 9366 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 177U, chartInstance->c1_sfEvent); |
| 9367 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 186U, chartInstance->c1_sfEvent); |
| 9368 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 185U, |
| 9369 | chartInstance->c1_sfEvent); |
| 9370 | c1_f_out = (CV_TRANSITION_EVAL(185U, (int32_T)_SFD_CCP_CALL(5U, 185U, |
| 9371 | 0, ((*chartInstance->c1_modeCom)[1] == AUTOX_MODE) != 0U, |
| 9372 | chartInstance->c1_sfEvent)) != 0); |
| 9373 | if (c1_f_out) { |
| 9374 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 185U, chartInstance->c1_sfEvent); |
| 9375 | c1_exit_internal_ACCELERATION_PID(chartInstance); |
| 9376 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 9377 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 9378 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9379 | (chartInstance->c1_is_MODES == 1)); |
| 9380 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9381 | (chartInstance->c1_is_MODES == 2)); |
| 9382 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9383 | (chartInstance->c1_is_MODES == 3)); |
| 9384 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9385 | (chartInstance->c1_is_MODES == 4)); |
| 9386 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9387 | (chartInstance->c1_is_MODES == 5)); |
| 9388 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 9389 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9390 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9391 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9392 | if (chartInstance->c1_is_MODES == c1_IN_ACCELERATION_PID) { |
| 9393 | } else { |
| 9394 | chartInstance->c1_is_MODES = c1_IN_ACCELERATION_PID; |
| 9395 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 9396 | &chartInstance->c1_is_MODES); |
| 9397 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9398 | (chartInstance->c1_is_MODES == 1)); |
| 9399 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9400 | (chartInstance->c1_is_MODES == 2)); |
| 9401 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9402 | (chartInstance->c1_is_MODES == 3)); |
| 9403 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9404 | (chartInstance->c1_is_MODES == 4)); |
| 9405 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9406 | (chartInstance->c1_is_MODES == 5)); |
| 9407 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9408 | chartInstance->c1_tp_ACCELERATION_PID = 1U; |
| 9409 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 9410 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 9411 | &chartInstance->c1_lastAutoXCom); |
| 9412 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 9413 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 9414 | [0]; |
| 9415 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 9416 | chartInstance->c1_lastModeCom); |
| 9417 | for (c1_i58 = 0; c1_i58 < 2; c1_i58++) { |
| 9418 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 9419 | [c1_i58], 48U); |
| 9420 | } |
| 9421 | |
| 9422 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 9423 | [1]; |
| 9424 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 9425 | chartInstance->c1_lastModeCom); |
| 9426 | for (c1_i60 = 0; c1_i60 < 2; c1_i60++) { |
| 9427 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 9428 | [c1_i60], 48U); |
| 9429 | } |
| 9430 | } |
| 9431 | |
| 9432 | c1_enter_internal_ACCELERATION_PID(chartInstance); |
| 9433 | } else { |
| 9434 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 178U, chartInstance->c1_sfEvent); |
| 9435 | c1_exit_internal_ACCELERATION_PID(chartInstance); |
| 9436 | chartInstance->c1_tp_ACCELERATION_PID = 0U; |
| 9437 | chartInstance->c1_is_MODES = c1_IN_NO_ACTIVE_CHILD; |
| 9438 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9439 | (chartInstance->c1_is_MODES == 1)); |
| 9440 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9441 | (chartInstance->c1_is_MODES == 2)); |
| 9442 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9443 | (chartInstance->c1_is_MODES == 3)); |
| 9444 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9445 | (chartInstance->c1_is_MODES == 4)); |
| 9446 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9447 | (chartInstance->c1_is_MODES == 5)); |
| 9448 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 0); |
| 9449 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9450 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9451 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 9452 | if (chartInstance->c1_is_MODES == c1_IN_MANUAL_MODES) { |
| 9453 | } else { |
| 9454 | chartInstance->c1_is_MODES = c1_IN_MANUAL_MODES; |
| 9455 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 9456 | &chartInstance->c1_is_MODES); |
| 9457 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 9458 | (chartInstance->c1_is_MODES == 1)); |
| 9459 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 9460 | (chartInstance->c1_is_MODES == 2)); |
| 9461 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 9462 | (chartInstance->c1_is_MODES == 3)); |
| 9463 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 9464 | (chartInstance->c1_is_MODES == 4)); |
| 9465 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 9466 | (chartInstance->c1_is_MODES == 5)); |
| 9467 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 9468 | chartInstance->c1_tp_MANUAL_MODES = 1U; |
| 9469 | (*chartInstance->c1_lastModeCom)[0] = (*chartInstance->c1_modeCom) |
| 9470 | [0]; |
| 9471 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 9472 | chartInstance->c1_lastModeCom); |
| 9473 | for (c1_i57 = 0; c1_i57 < 2; c1_i57++) { |
| 9474 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 9475 | [c1_i57], 48U); |
| 9476 | } |
| 9477 | |
| 9478 | (*chartInstance->c1_lastModeCom)[1] = (*chartInstance->c1_modeCom) |
| 9479 | [1]; |
| 9480 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 9481 | chartInstance->c1_lastModeCom); |
| 9482 | for (c1_i59 = 0; c1_i59 < 2; c1_i59++) { |
| 9483 | _SFD_DATA_RANGE_CHECK((real_T)(*chartInstance->c1_lastModeCom) |
| 9484 | [c1_i59], 48U); |
| 9485 | } |
| 9486 | |
| 9487 | c1_checkShift(chartInstance); |
| 9488 | c1_checkClutch(chartInstance); |
| 9489 | } |
| 9490 | |
| 9491 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 136U, chartInstance->c1_sfEvent); |
| 9492 | chartInstance->c1_is_MANUAL_MODES = c1_IN_ENDURANCE; |
| 9493 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 9494 | &chartInstance->c1_is_MANUAL_MODES); |
| 9495 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 9496 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 9497 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 9498 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 9499 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 2); |
| 9500 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 33, 727U, 1); |
| 9501 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 9502 | chartInstance->c1_tp_ENDURANCE = 1U; |
| 9503 | } |
| 9504 | } |
| 9505 | } |
| 9506 | } |
| 9507 | } else { |
| 9508 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 48U, chartInstance->c1_sfEvent); |
| 9509 | switch (chartInstance->c1_is_ACCELERATION_PID) { |
| 9510 | case c1_b_IN_DEFAULT: |
| 9511 | CV_STATE_EVAL(48, 0, c1_b_IN_DEFAULT); |
| 9512 | c1_c_DEFAULT(chartInstance); |
| 9513 | break; |
| 9514 | |
| 9515 | case c1_IN_LAUNCH0: |
| 9516 | CV_STATE_EVAL(48, 0, c1_IN_LAUNCH0); |
| 9517 | c1_LAUNCH0(chartInstance); |
| 9518 | break; |
| 9519 | |
| 9520 | default: |
| 9521 | CV_STATE_EVAL(48, 0, 0); |
| 9522 | |
| 9523 | /* Unreachable state, for coverage only */ |
| 9524 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 9525 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9526 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9527 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9528 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9529 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 9530 | break; |
| 9531 | } |
| 9532 | } |
| 9533 | |
| 9534 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 48U, chartInstance->c1_sfEvent); |
| 9535 | } |
| 9536 | |
| 9537 | static void c1_exit_internal_ACCELERATION_PID |
| 9538 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 9539 | { |
| 9540 | switch (chartInstance->c1_is_ACCELERATION_PID) { |
| 9541 | case c1_b_IN_DEFAULT: |
| 9542 | CV_STATE_EVAL(48, 1, c1_b_IN_DEFAULT); |
| 9543 | chartInstance->c1_c_tp_DEFAULT = 0U; |
| 9544 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 9545 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9546 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9547 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9548 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9549 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 9550 | break; |
| 9551 | |
| 9552 | case c1_IN_LAUNCH0: |
| 9553 | CV_STATE_EVAL(48, 1, c1_IN_LAUNCH0); |
| 9554 | switch (chartInstance->c1_is_LAUNCH0) { |
| 9555 | case c1_IN_ACTIVE: |
| 9556 | CV_STATE_EVAL(50, 1, c1_IN_ACTIVE); |
| 9557 | c1_c_exit_internal_ACTIVE(chartInstance); |
| 9558 | if (chartInstance->c1_is_LAUNCH0 != c1_IN_ACTIVE) { |
| 9559 | } else { |
| 9560 | chartInstance->c1_c_tp_ACTIVE = 0U; |
| 9561 | _SFD_CS_CALL(STATE_ENTER_EXIT_FUNCTION_TAG, 51U, |
| 9562 | chartInstance->c1_sfEvent); |
| 9563 | sf_call_output_fcn_disable(chartInstance->S, 16, "ramp", 0); |
| 9564 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9565 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9566 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9567 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9568 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9569 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9570 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 0); |
| 9571 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 9572 | &chartInstance->c1_c_is_ACTIVE); |
| 9573 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 9574 | } |
| 9575 | break; |
| 9576 | |
| 9577 | case c1_IN_STOPPING: |
| 9578 | CV_STATE_EVAL(50, 1, c1_IN_STOPPING); |
| 9579 | chartInstance->c1_c_tp_STOPPING = 0U; |
| 9580 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9581 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9582 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9583 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9584 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9585 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 9586 | break; |
| 9587 | |
| 9588 | default: |
| 9589 | CV_STATE_EVAL(50, 1, 0); |
| 9590 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9591 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9592 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9593 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9594 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9595 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 9596 | break; |
| 9597 | } |
| 9598 | |
| 9599 | chartInstance->c1_tp_LAUNCH0 = 0U; |
| 9600 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 9601 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9602 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9603 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9604 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9605 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 0); |
| 9606 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 9607 | &chartInstance->c1_is_LAUNCH0); |
| 9608 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 9609 | break; |
| 9610 | |
| 9611 | default: |
| 9612 | CV_STATE_EVAL(48, 1, 0); |
| 9613 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 9614 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9615 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9616 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9617 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9618 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 9619 | break; |
| 9620 | } |
| 9621 | } |
| 9622 | |
| 9623 | static void c1_LAUNCH0(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 9624 | { |
| 9625 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 50U, chartInstance->c1_sfEvent); |
| 9626 | switch (chartInstance->c1_is_LAUNCH0) { |
| 9627 | case c1_IN_ACTIVE: |
| 9628 | CV_STATE_EVAL(50, 0, c1_IN_ACTIVE); |
| 9629 | c1_c_ACTIVE(chartInstance); |
| 9630 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 50U, chartInstance->c1_sfEvent); |
| 9631 | break; |
| 9632 | |
| 9633 | case c1_IN_STOPPING: |
| 9634 | CV_STATE_EVAL(50, 0, c1_IN_STOPPING); |
| 9635 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 213U, chartInstance->c1_sfEvent); |
| 9636 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 202U, chartInstance->c1_sfEvent); |
| 9637 | chartInstance->c1_c_tp_STOPPING = 0U; |
| 9638 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9639 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9640 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9641 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9642 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9643 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 9644 | chartInstance->c1_tp_LAUNCH0 = 0U; |
| 9645 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 9646 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9647 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9648 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9649 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9650 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 0); |
| 9651 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 9652 | &chartInstance->c1_is_LAUNCH0); |
| 9653 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 9654 | if (chartInstance->c1_is_ACCELERATION_PID == c1_b_IN_DEFAULT) { |
| 9655 | } else { |
| 9656 | chartInstance->c1_is_ACCELERATION_PID = c1_b_IN_DEFAULT; |
| 9657 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 9658 | &chartInstance->c1_is_ACCELERATION_PID); |
| 9659 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 9660 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 9661 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 9662 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 9663 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 18); |
| 9664 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 1); |
| 9665 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 9666 | chartInstance->c1_c_tp_DEFAULT = 1U; |
| 9667 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_DEFAULT; |
| 9668 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9669 | chartInstance->c1_stateFb); |
| 9670 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9671 | c1_checkShift(chartInstance); |
| 9672 | c1_checkClutch(chartInstance); |
| 9673 | } |
| 9674 | |
| 9675 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 59U, chartInstance->c1_sfEvent); |
| 9676 | if (chartInstance->c1_is_ACCELERATION_PID != c1_IN_LAUNCH0) { |
| 9677 | } else { |
| 9678 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 50U, chartInstance->c1_sfEvent); |
| 9679 | } |
| 9680 | break; |
| 9681 | |
| 9682 | default: |
| 9683 | CV_STATE_EVAL(50, 0, 0); |
| 9684 | |
| 9685 | /* Unreachable state, for coverage only */ |
| 9686 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9687 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9688 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9689 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9690 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9691 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 9692 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 50U, chartInstance->c1_sfEvent); |
| 9693 | break; |
| 9694 | } |
| 9695 | } |
| 9696 | |
| 9697 | static void c1_c_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 9698 | { |
| 9699 | boolean_T c1_temp; |
| 9700 | boolean_T c1_b_out; |
| 9701 | boolean_T c1_c_out; |
| 9702 | boolean_T c1_b_temp; |
| 9703 | uint16_T c1_u18; |
| 9704 | boolean_T c1_d_out; |
| 9705 | real_T c1_c_clutchCurrVal; |
| 9706 | boolean_T c1_e_out; |
| 9707 | real_T c1_d6; |
| 9708 | boolean_T c1_covSaturation; |
| 9709 | uint8_T c1_u19; |
| 9710 | uint16_T c1_u20; |
| 9711 | uint16_T c1_u21; |
| 9712 | boolean_T c1_b_covSaturation; |
| 9713 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 211U, chartInstance->c1_sfEvent); |
| 9714 | c1_temp = _SFD_CCP_CALL(5U, 211U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 211U, 0, |
| 9715 | (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 9716 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] != |
| 9717 | chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 9718 | if (c1_temp) { |
| 9719 | c1_temp = _SFD_CCP_CALL(5U, 211U, 1, ((*chartInstance->c1_autoXCom)[1] == |
| 9720 | AUTOX_DEFAULT) != 0U, chartInstance->c1_sfEvent); |
| 9721 | } |
| 9722 | |
| 9723 | c1_b_out = (CV_TRANSITION_EVAL(211U, (int32_T)c1_temp) != 0); |
| 9724 | if (c1_b_out) { |
| 9725 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 211U, chartInstance->c1_sfEvent); |
| 9726 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 9727 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 9728 | &chartInstance->c1_lastAutoXCom); |
| 9729 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 9730 | c1_u18 = chartInstance->c1_lastAutoXCom; |
| 9731 | sf_mex_printf("%s =\\n", "lastAutoXCom"); |
| 9732 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u18); |
| 9733 | c1_c_exit_internal_ACTIVE(chartInstance); |
| 9734 | if (chartInstance->c1_is_LAUNCH0 != c1_IN_ACTIVE) { |
| 9735 | } else { |
| 9736 | chartInstance->c1_c_tp_ACTIVE = 0U; |
| 9737 | _SFD_CS_CALL(STATE_ENTER_EXIT_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9738 | sf_call_output_fcn_disable(chartInstance->S, 16, "ramp", 0); |
| 9739 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9740 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9741 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9742 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9743 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9744 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9745 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 0); |
| 9746 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 9747 | &chartInstance->c1_c_is_ACTIVE); |
| 9748 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 9749 | } |
| 9750 | |
| 9751 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_STOPPING) { |
| 9752 | } else { |
| 9753 | chartInstance->c1_is_LAUNCH0 = c1_IN_STOPPING; |
| 9754 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 9755 | &chartInstance->c1_is_LAUNCH0); |
| 9756 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9757 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9758 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9759 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 9760 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 9761 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 7); |
| 9762 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 6); |
| 9763 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 9764 | chartInstance->c1_c_tp_STOPPING = 1U; |
| 9765 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 9766 | c1_Clutch_setValue(chartInstance, 0U); |
| 9767 | } |
| 9768 | |
| 9769 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9770 | } else { |
| 9771 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9772 | switch (chartInstance->c1_c_is_ACTIVE) { |
| 9773 | case c1_IN_READY: |
| 9774 | CV_STATE_EVAL(51, 0, c1_IN_READY); |
| 9775 | c1_READY(chartInstance); |
| 9776 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9777 | break; |
| 9778 | |
| 9779 | case c1_IN_RELEASE: |
| 9780 | CV_STATE_EVAL(51, 0, c1_IN_RELEASE); |
| 9781 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 219U, |
| 9782 | chartInstance->c1_sfEvent); |
| 9783 | c1_c_out = (CV_TRANSITION_EVAL(219U, (int32_T)_SFD_CCP_CALL(5U, 219U, 0, |
| 9784 | (boolean_T)CV_RELATIONAL_EVAL(5U, 219U, 0, (real_T) |
| 9785 | *chartInstance->c1_clutchCurrVal, 0.0, 0, 0U, |
| 9786 | *chartInstance->c1_clutchCurrVal == 0) != 0U, chartInstance->c1_sfEvent)) |
| 9787 | != 0); |
| 9788 | if (c1_c_out) { |
| 9789 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 219U, chartInstance->c1_sfEvent); |
| 9790 | c1_Clutch_setValue(chartInstance, 0U); |
| 9791 | *chartInstance->c1_stateFb = 3U; |
| 9792 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 9793 | chartInstance->c1_stateFb); |
| 9794 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 9795 | chartInstance->c1_tp_RELEASE = 0U; |
| 9796 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 9797 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 9798 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 9799 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 9800 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 9801 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 9802 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 9803 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 9804 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 9805 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 9806 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 9807 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 53U, chartInstance->c1_sfEvent); |
| 9808 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RPM_LIMITER) { |
| 9809 | } else { |
| 9810 | chartInstance->c1_c_is_ACTIVE = c1_IN_RPM_LIMITER; |
| 9811 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 9812 | &chartInstance->c1_c_is_ACTIVE); |
| 9813 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 9814 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 9815 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 9816 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 9817 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 9818 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 9819 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 9820 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 9821 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 9822 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 9823 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 15); |
| 9824 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 5); |
| 9825 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 4); |
| 9826 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 4); |
| 9827 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 9828 | chartInstance->c1_tp_RPM_LIMITER = 1U; |
| 9829 | *chartInstance->c1_rpmAccTarget = 0U; |
| 9830 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 30, 2851U, (void *) |
| 9831 | chartInstance->c1_rpmAccTarget); |
| 9832 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_rpmAccTarget, 52U); |
| 9833 | } |
| 9834 | } else { |
| 9835 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 53U, |
| 9836 | chartInstance->c1_sfEvent); |
| 9837 | _SFD_SET_DATA_VALUE_PTR(87U, (void *)&c1_c_clutchCurrVal); |
| 9838 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 58U, chartInstance->c1_sfEvent); |
| 9839 | _SFD_SYMBOL_SCOPE_PUSH(1U, 0U); |
| 9840 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("clutchCurrVal", &c1_c_clutchCurrVal, |
| 9841 | c1_k_sf_marshallOut, c1_g_sf_marshallIn); |
| 9842 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 58U, |
| 9843 | chartInstance->c1_sfEvent); |
| 9844 | sf_call_output_fcn_call(chartInstance->S, 16, "ramp", 0); |
| 9845 | c1_c_clutchCurrVal = *chartInstance->c1_b_clutchCurrVal; |
| 9846 | _SFD_SYMBOL_SCOPE_POP(); |
| 9847 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 58U, chartInstance->c1_sfEvent); |
| 9848 | _SFD_UNSET_DATA_VALUE_PTR(87U); |
| 9849 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 58U, chartInstance->c1_sfEvent); |
| 9850 | c1_d6 = c1_c_clutchCurrVal; |
| 9851 | c1_covSaturation = false; |
| 9852 | if (c1_d6 < 256.0) { |
| 9853 | if (c1_d6 >= 0.0) { |
| 9854 | c1_u19 = (uint8_T)c1_d6; |
| 9855 | } else { |
| 9856 | c1_covSaturation = true; |
| 9857 | c1_u19 = 0U; |
| 9858 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2238U, 32U, 4U); |
| 9859 | } |
| 9860 | } else if (c1_d6 >= 256.0) { |
| 9861 | c1_covSaturation = true; |
| 9862 | c1_u19 = MAX_uint8_T; |
| 9863 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2238U, 32U, 4U); |
| 9864 | } else { |
| 9865 | c1_u19 = 0U; |
| 9866 | } |
| 9867 | |
| 9868 | CV_SATURATION_EVAL(4, 53, 0, 0, c1_covSaturation); |
| 9869 | *chartInstance->c1_clutchCurrVal = c1_u19; |
| 9870 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 0, 123U, (void *) |
| 9871 | chartInstance->c1_clutchCurrVal); |
| 9872 | _SFD_DATA_RANGE_CHECK_MIN_MAX((real_T)*chartInstance->c1_clutchCurrVal, |
| 9873 | 47U, 0.0, 100.0, 2238U, 16, 23); |
| 9874 | } |
| 9875 | |
| 9876 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 53U, chartInstance->c1_sfEvent); |
| 9877 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9878 | break; |
| 9879 | |
| 9880 | case c1_IN_RPM_LIMITER: |
| 9881 | CV_STATE_EVAL(51, 0, c1_IN_RPM_LIMITER); |
| 9882 | *chartInstance->c1_rpmAccTarget = 0U; |
| 9883 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 232U, |
| 9884 | chartInstance->c1_sfEvent); |
| 9885 | c1_d_out = (CV_TRANSITION_EVAL(232U, (int32_T)_SFD_CCP_CALL(5U, 232U, 0, |
| 9886 | (boolean_T)CV_RELATIONAL_EVAL(5U, 232U, 0, (real_T) |
| 9887 | *chartInstance->c1_currVhSpeed, 15.0, 0, 5U, |
| 9888 | *chartInstance->c1_currVhSpeed >= 15) != 0U, chartInstance->c1_sfEvent)) |
| 9889 | != 0); |
| 9890 | if (c1_d_out) { |
| 9891 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 232U, chartInstance->c1_sfEvent); |
| 9892 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 9893 | chartInstance->c1_tp_RPM_LIMITER = 0U; |
| 9894 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 9895 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 9896 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 9897 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 9898 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 9899 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 9900 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 9901 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 9902 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 9903 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 9904 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 9905 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 9906 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_RUNNING) { |
| 9907 | } else { |
| 9908 | chartInstance->c1_c_is_ACTIVE = c1_b_IN_RUNNING; |
| 9909 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 9910 | &chartInstance->c1_c_is_ACTIVE); |
| 9911 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 9912 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 9913 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 9914 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 9915 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 9916 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 9917 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 9918 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 9919 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 9920 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 9921 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 16); |
| 9922 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 6); |
| 9923 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 5); |
| 9924 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 5); |
| 9925 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 9926 | chartInstance->c1_c_tp_RUNNING = 1U; |
| 9927 | chartInstance->c1_b_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 9928 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 9929 | &chartInstance->c1_b_autoXCounter); |
| 9930 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 9931 | c1_u20 = chartInstance->c1_b_autoXCounter; |
| 9932 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 9933 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, |
| 9934 | c1_u20); |
| 9935 | c1_u21 = *chartInstance->c1_currGear; |
| 9936 | c1_b_covSaturation = false; |
| 9937 | if (c1_u21 > 255) { |
| 9938 | c1_b_covSaturation = true; |
| 9939 | c1_u21 = 255U; |
| 9940 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2193U, 64U, 8U); |
| 9941 | } |
| 9942 | |
| 9943 | CV_SATURATION_EVAL(4, 55, 0, 0, c1_b_covSaturation); |
| 9944 | chartInstance->c1_lastShift = (uint8_T)c1_u21; |
| 9945 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 9946 | &chartInstance->c1_lastShift); |
| 9947 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 9948 | c1_b_autoXCheckShift(chartInstance); |
| 9949 | } |
| 9950 | } else { |
| 9951 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 54U, |
| 9952 | chartInstance->c1_sfEvent); |
| 9953 | } |
| 9954 | |
| 9955 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 54U, chartInstance->c1_sfEvent); |
| 9956 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9957 | break; |
| 9958 | |
| 9959 | case c1_b_IN_RUNNING: |
| 9960 | CV_STATE_EVAL(51, 0, c1_b_IN_RUNNING); |
| 9961 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 212U, |
| 9962 | chartInstance->c1_sfEvent); |
| 9963 | c1_b_temp = _SFD_CCP_CALL(5U, 212U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 9964 | 212U, 0, (real_T)*chartInstance->c1_currGear, 5.0, 0, 5U, |
| 9965 | *chartInstance->c1_currGear >= 5) != 0U, chartInstance->c1_sfEvent); |
| 9966 | if (c1_b_temp) { |
| 9967 | c1_b_temp = _SFD_CCP_CALL(5U, 212U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 9968 | 212U, 1, (real_T)*chartInstance->c1_currGear, 8.0, 0, 1U, |
| 9969 | *chartInstance->c1_currGear != 8) != 0U, chartInstance->c1_sfEvent); |
| 9970 | } |
| 9971 | |
| 9972 | c1_e_out = (CV_TRANSITION_EVAL(212U, (int32_T)c1_b_temp) != 0); |
| 9973 | if (c1_e_out) { |
| 9974 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 212U, chartInstance->c1_sfEvent); |
| 9975 | chartInstance->c1_c_tp_RUNNING = 0U; |
| 9976 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 9977 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 9978 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 9979 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 9980 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 9981 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 9982 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 9983 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 9984 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 9985 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 9986 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 9987 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 9988 | if (chartInstance->c1_is_LAUNCH0 != c1_IN_ACTIVE) { |
| 9989 | } else { |
| 9990 | chartInstance->c1_c_tp_ACTIVE = 0U; |
| 9991 | _SFD_CS_CALL(STATE_ENTER_EXIT_FUNCTION_TAG, 51U, |
| 9992 | chartInstance->c1_sfEvent); |
| 9993 | sf_call_output_fcn_disable(chartInstance->S, 16, "ramp", 0); |
| 9994 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 9995 | chartInstance->c1_is_LAUNCH0 = c1_IN_NO_ACTIVE_CHILD; |
| 9996 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 9997 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 9998 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 9999 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 10000 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 0); |
| 10001 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 10002 | &chartInstance->c1_c_is_ACTIVE); |
| 10003 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 10004 | } |
| 10005 | |
| 10006 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_STOPPING) { |
| 10007 | } else { |
| 10008 | chartInstance->c1_is_LAUNCH0 = c1_IN_STOPPING; |
| 10009 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 10010 | &chartInstance->c1_is_LAUNCH0); |
| 10011 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 10012 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 10013 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 10014 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 10015 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 24); |
| 10016 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 7); |
| 10017 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 6); |
| 10018 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 10019 | chartInstance->c1_c_tp_STOPPING = 1U; |
| 10020 | sf_call_output_fcn_call(chartInstance->S, 5, "Efi_unsetRPMLimiter", 0); |
| 10021 | c1_Clutch_setValue(chartInstance, 0U); |
| 10022 | } |
| 10023 | } else { |
| 10024 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 55U, |
| 10025 | chartInstance->c1_sfEvent); |
| 10026 | c1_b_autoXCheckShift(chartInstance); |
| 10027 | } |
| 10028 | |
| 10029 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 55U, chartInstance->c1_sfEvent); |
| 10030 | if (chartInstance->c1_is_LAUNCH0 != c1_IN_ACTIVE) { |
| 10031 | } else { |
| 10032 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 10033 | } |
| 10034 | break; |
| 10035 | |
| 10036 | case c1_b_IN_START: |
| 10037 | CV_STATE_EVAL(51, 0, c1_b_IN_START); |
| 10038 | c1_c_START(chartInstance); |
| 10039 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 10040 | break; |
| 10041 | |
| 10042 | default: |
| 10043 | CV_STATE_EVAL(51, 0, 0); |
| 10044 | |
| 10045 | /* Unreachable state, for coverage only */ |
| 10046 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10047 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10048 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10049 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10050 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10051 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10052 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10053 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10054 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10055 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10056 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10057 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10058 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 51U, chartInstance->c1_sfEvent); |
| 10059 | break; |
| 10060 | } |
| 10061 | } |
| 10062 | } |
| 10063 | |
| 10064 | static void c1_c_exit_internal_ACTIVE(SFc1_GCU_Model_genCodeInstanceStruct |
| 10065 | *chartInstance) |
| 10066 | { |
| 10067 | switch (chartInstance->c1_c_is_ACTIVE) { |
| 10068 | case c1_IN_READY: |
| 10069 | CV_STATE_EVAL(51, 1, c1_IN_READY); |
| 10070 | chartInstance->c1_c_tp_READY = 0U; |
| 10071 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10072 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10073 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10074 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10075 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10076 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10077 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10078 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10079 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10080 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10081 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10082 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10083 | break; |
| 10084 | |
| 10085 | case c1_IN_RELEASE: |
| 10086 | CV_STATE_EVAL(51, 1, c1_IN_RELEASE); |
| 10087 | chartInstance->c1_tp_RELEASE = 0U; |
| 10088 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10089 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10090 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10091 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10092 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10093 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10094 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10095 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10096 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10097 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10098 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10099 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 53U, chartInstance->c1_sfEvent); |
| 10100 | break; |
| 10101 | |
| 10102 | case c1_IN_RPM_LIMITER: |
| 10103 | CV_STATE_EVAL(51, 1, c1_IN_RPM_LIMITER); |
| 10104 | chartInstance->c1_tp_RPM_LIMITER = 0U; |
| 10105 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10106 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10107 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10108 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10109 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10110 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10111 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10112 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10113 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10114 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10115 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10116 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 10117 | break; |
| 10118 | |
| 10119 | case c1_b_IN_RUNNING: |
| 10120 | CV_STATE_EVAL(51, 1, c1_b_IN_RUNNING); |
| 10121 | chartInstance->c1_c_tp_RUNNING = 0U; |
| 10122 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10123 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10124 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10125 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10126 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10127 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10128 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10129 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10130 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10131 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10132 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10133 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 10134 | break; |
| 10135 | |
| 10136 | case c1_b_IN_START: |
| 10137 | CV_STATE_EVAL(51, 1, c1_b_IN_START); |
| 10138 | chartInstance->c1_c_tp_START = 0U; |
| 10139 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10140 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10141 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10142 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10143 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10144 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10145 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10146 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10147 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10148 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10149 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10150 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 10151 | break; |
| 10152 | |
| 10153 | default: |
| 10154 | CV_STATE_EVAL(51, 1, 0); |
| 10155 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10156 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10157 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10158 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10159 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10160 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10161 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10162 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10163 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10164 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10165 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10166 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10167 | break; |
| 10168 | } |
| 10169 | } |
| 10170 | |
| 10171 | static void c1_c_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 10172 | { |
| 10173 | boolean_T c1_b_out; |
| 10174 | int32_T c1_i61; |
| 10175 | boolean_T c1_covSaturation; |
| 10176 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 216U, chartInstance->c1_sfEvent); |
| 10177 | c1_b_out = (CV_TRANSITION_EVAL(216U, (int32_T)_SFD_CCP_CALL(5U, 216U, 0, |
| 10178 | (boolean_T)CV_RELATIONAL_EVAL(5U, 216U, 0, (real_T) |
| 10179 | chartInstance->c1_b_autoXCounter, 1.0, 0, 3U, |
| 10180 | chartInstance->c1_b_autoXCounter <= 1) != 0U, chartInstance->c1_sfEvent)) != |
| 10181 | 0); |
| 10182 | if (c1_b_out) { |
| 10183 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 216U, chartInstance->c1_sfEvent); |
| 10184 | chartInstance->c1_c_tp_START = 0U; |
| 10185 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10186 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10187 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10188 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10189 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10190 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10191 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10192 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10193 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10194 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10195 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10196 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 10197 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_READY) { |
| 10198 | } else { |
| 10199 | chartInstance->c1_c_is_ACTIVE = c1_IN_READY; |
| 10200 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 10201 | &chartInstance->c1_c_is_ACTIVE); |
| 10202 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10203 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10204 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10205 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10206 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10207 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10208 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10209 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10210 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10211 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10212 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 10213 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 3); |
| 10214 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 2); |
| 10215 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 2); |
| 10216 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10217 | chartInstance->c1_c_tp_READY = 1U; |
| 10218 | c1_c_enter_atomic_READY(chartInstance); |
| 10219 | } |
| 10220 | } else { |
| 10221 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 56U, chartInstance->c1_sfEvent); |
| 10222 | c1_i61 = c1__s32_minus__(chartInstance, (int32_T) |
| 10223 | chartInstance->c1_b_autoXCounter, 1, 2191U, 165, 1); |
| 10224 | c1_covSaturation = false; |
| 10225 | if (c1_i61 < 0) { |
| 10226 | c1_covSaturation = true; |
| 10227 | c1_i61 = 0; |
| 10228 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2191U, 165U, 1U); |
| 10229 | } else { |
| 10230 | if (c1_i61 > 65535) { |
| 10231 | c1_i61 = 65535; |
| 10232 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2191U, 165U, 1U); |
| 10233 | } |
| 10234 | |
| 10235 | CV_SATURATION_EVAL(4, 56, 0, 0, c1_covSaturation); |
| 10236 | } |
| 10237 | |
| 10238 | chartInstance->c1_b_autoXCounter = (uint16_T)c1_i61; |
| 10239 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 10240 | &chartInstance->c1_b_autoXCounter); |
| 10241 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 10242 | } |
| 10243 | |
| 10244 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 56U, chartInstance->c1_sfEvent); |
| 10245 | } |
| 10246 | |
| 10247 | static void c1_c_enter_atomic_READY(SFc1_GCU_Model_genCodeInstanceStruct |
| 10248 | *chartInstance) |
| 10249 | { |
| 10250 | uint16_T c1_u22; |
| 10251 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_READY; |
| 10252 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 10253 | chartInstance->c1_stateFb); |
| 10254 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 10255 | chartInstance->c1_b_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 10256 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 10257 | &chartInstance->c1_b_autoXCounter); |
| 10258 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 10259 | c1_u22 = chartInstance->c1_b_autoXCounter; |
| 10260 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 10261 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u22); |
| 10262 | c1_Clutch_setValue(chartInstance, 100U); |
| 10263 | c1_checkShift(chartInstance); |
| 10264 | } |
| 10265 | |
| 10266 | static void c1_READY(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 10267 | { |
| 10268 | boolean_T c1_b_out; |
| 10269 | int32_T c1_i62; |
| 10270 | boolean_T c1_covSaturation; |
| 10271 | boolean_T c1_temp; |
| 10272 | boolean_T c1_b_temp; |
| 10273 | c1_autoX_params c1_index; |
| 10274 | boolean_T c1_c_out; |
| 10275 | int32_T c1_i63; |
| 10276 | int32_T c1_param; |
| 10277 | real_T c1_c_clutchCurrVal; |
| 10278 | real_T c1_d7; |
| 10279 | boolean_T c1_b_covSaturation; |
| 10280 | uint8_T c1_u23; |
| 10281 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 217U, chartInstance->c1_sfEvent); |
| 10282 | c1_b_out = (CV_TRANSITION_EVAL(217U, (int32_T)_SFD_CCP_CALL(5U, 217U, 0, |
| 10283 | (boolean_T)CV_RELATIONAL_EVAL(5U, 217U, 0, (real_T) |
| 10284 | chartInstance->c1_b_autoXCounter, 1.0, 0, 3U, |
| 10285 | chartInstance->c1_b_autoXCounter <= 1) != 0U, chartInstance->c1_sfEvent)) != |
| 10286 | 0); |
| 10287 | if (c1_b_out) { |
| 10288 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 217U, chartInstance->c1_sfEvent); |
| 10289 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 218U, |
| 10290 | chartInstance->c1_sfEvent); |
| 10291 | c1_temp = _SFD_CCP_CALL(5U, 218U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 218U, |
| 10292 | 0, (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 10293 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] != |
| 10294 | chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 10295 | if (c1_temp) { |
| 10296 | c1_temp = _SFD_CCP_CALL(5U, 218U, 1, ((*chartInstance->c1_autoXCom)[1] == |
| 10297 | AUTOX_GO) != 0U, chartInstance->c1_sfEvent); |
| 10298 | } |
| 10299 | |
| 10300 | c1_b_temp = c1_temp; |
| 10301 | if (c1_b_temp) { |
| 10302 | c1_index = autoX_params_AUTOX_TPS_START_LIMIT; |
| 10303 | _SFD_SET_DATA_VALUE_PTR(86U, (void *)&c1_i63); |
| 10304 | _SFD_SET_DATA_VALUE_PTR(77U, (void *)&c1_index); |
| 10305 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 60U, chartInstance->c1_sfEvent); |
| 10306 | _SFD_SYMBOL_SCOPE_PUSH(2U, 0U); |
| 10307 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("index", &c1_index, c1_n_sf_marshallOut, |
| 10308 | c1_j_sf_marshallIn); |
| 10309 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("param", &c1_i63, c1_sf_marshallOut, |
| 10310 | c1_sf_marshallIn); |
| 10311 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 60U, |
| 10312 | chartInstance->c1_sfEvent); |
| 10313 | c1_i63 = 0; |
| 10314 | _SFD_DATA_RANGE_CHECK((real_T)c1_i63, 86U); |
| 10315 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 230U, chartInstance->c1_sfEvent); |
| 10316 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 231U, chartInstance->c1_sfEvent); |
| 10317 | c1_i63 = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 10318 | (sfGlobalDebugInstanceStruct, chartInstance->S, 2231U, 9, 16, 32U, |
| 10319 | (int32_T)c1_index, 0, 15)]; |
| 10320 | _SFD_DATA_RANGE_CHECK((real_T)c1_i63, 86U); |
| 10321 | c1_param = c1_i63; |
| 10322 | sf_mex_printf("%s =\\n", "param"); |
| 10323 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, |
| 10324 | c1_param); |
| 10325 | _SFD_SYMBOL_SCOPE_POP(); |
| 10326 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 60U, chartInstance->c1_sfEvent); |
| 10327 | _SFD_UNSET_DATA_VALUE_PTR(86U); |
| 10328 | _SFD_UNSET_DATA_VALUE_PTR(77U); |
| 10329 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 60U, chartInstance->c1_sfEvent); |
| 10330 | c1_b_temp = _SFD_CCP_CALL(5U, 218U, 2, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 10331 | 218U, 1, (real_T)*chartInstance->c1_currTps, (real_T)c1_i63, 0, 5U, |
| 10332 | *chartInstance->c1_currTps >= c1_i63) != 0U, chartInstance->c1_sfEvent); |
| 10333 | } |
| 10334 | |
| 10335 | c1_c_out = (CV_TRANSITION_EVAL(218U, (int32_T)c1_b_temp) != 0); |
| 10336 | if (c1_c_out) { |
| 10337 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 218U, chartInstance->c1_sfEvent); |
| 10338 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 10339 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 10340 | &chartInstance->c1_lastAutoXCom); |
| 10341 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 10342 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_GO; |
| 10343 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 10344 | chartInstance->c1_stateFb); |
| 10345 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 10346 | chartInstance->c1_c_tp_READY = 0U; |
| 10347 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10348 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10349 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10350 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10351 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10352 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10353 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10354 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10355 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10356 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10357 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10358 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10359 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_RELEASE) { |
| 10360 | } else { |
| 10361 | chartInstance->c1_c_is_ACTIVE = c1_IN_RELEASE; |
| 10362 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 10363 | &chartInstance->c1_c_is_ACTIVE); |
| 10364 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10365 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10366 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10367 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10368 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10369 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10370 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10371 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10372 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10373 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10374 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 14); |
| 10375 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 4); |
| 10376 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 3); |
| 10377 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 3); |
| 10378 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 53U, chartInstance->c1_sfEvent); |
| 10379 | chartInstance->c1_tp_RELEASE = 1U; |
| 10380 | _SFD_SET_DATA_VALUE_PTR(87U, (void *)&c1_c_clutchCurrVal); |
| 10381 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 58U, chartInstance->c1_sfEvent); |
| 10382 | _SFD_SYMBOL_SCOPE_PUSH(1U, 0U); |
| 10383 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("clutchCurrVal", &c1_c_clutchCurrVal, |
| 10384 | c1_k_sf_marshallOut, c1_g_sf_marshallIn); |
| 10385 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 58U, |
| 10386 | chartInstance->c1_sfEvent); |
| 10387 | sf_call_output_fcn_call(chartInstance->S, 16, "ramp", 0); |
| 10388 | c1_c_clutchCurrVal = *chartInstance->c1_b_clutchCurrVal; |
| 10389 | _SFD_SYMBOL_SCOPE_POP(); |
| 10390 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 58U, chartInstance->c1_sfEvent); |
| 10391 | _SFD_UNSET_DATA_VALUE_PTR(87U); |
| 10392 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 58U, chartInstance->c1_sfEvent); |
| 10393 | c1_d7 = c1_c_clutchCurrVal; |
| 10394 | c1_b_covSaturation = false; |
| 10395 | if (c1_d7 < 256.0) { |
| 10396 | if (c1_d7 >= 0.0) { |
| 10397 | c1_u23 = (uint8_T)c1_d7; |
| 10398 | } else { |
| 10399 | c1_b_covSaturation = true; |
| 10400 | c1_u23 = 0U; |
| 10401 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2238U, 32U, 4U); |
| 10402 | } |
| 10403 | } else if (c1_d7 >= 256.0) { |
| 10404 | c1_b_covSaturation = true; |
| 10405 | c1_u23 = MAX_uint8_T; |
| 10406 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2238U, 32U, 4U); |
| 10407 | } else { |
| 10408 | c1_u23 = 0U; |
| 10409 | } |
| 10410 | |
| 10411 | CV_SATURATION_EVAL(4, 53, 0, 0, c1_b_covSaturation); |
| 10412 | *chartInstance->c1_clutchCurrVal = c1_u23; |
| 10413 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 0, 123U, (void *) |
| 10414 | chartInstance->c1_clutchCurrVal); |
| 10415 | _SFD_DATA_RANGE_CHECK_MIN_MAX((real_T)*chartInstance->c1_clutchCurrVal, |
| 10416 | 47U, 0.0, 100.0, 2238U, 16, 23); |
| 10417 | } |
| 10418 | } else { |
| 10419 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 215U, chartInstance->c1_sfEvent); |
| 10420 | chartInstance->c1_c_tp_READY = 0U; |
| 10421 | chartInstance->c1_c_is_ACTIVE = c1_IN_NO_ACTIVE_CHILD; |
| 10422 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10423 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10424 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10425 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10426 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10427 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10428 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10429 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10430 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10431 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10432 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10433 | if (chartInstance->c1_c_is_ACTIVE == c1_IN_READY) { |
| 10434 | } else { |
| 10435 | chartInstance->c1_c_is_ACTIVE = c1_IN_READY; |
| 10436 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 10437 | &chartInstance->c1_c_is_ACTIVE); |
| 10438 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10439 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10440 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10441 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10442 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10443 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10444 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10445 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10446 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10447 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10448 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 20); |
| 10449 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 3); |
| 10450 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 2); |
| 10451 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 2); |
| 10452 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 10453 | chartInstance->c1_c_tp_READY = 1U; |
| 10454 | c1_c_enter_atomic_READY(chartInstance); |
| 10455 | } |
| 10456 | } |
| 10457 | } else { |
| 10458 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 52U, chartInstance->c1_sfEvent); |
| 10459 | c1_i62 = c1__s32_minus__(chartInstance, (int32_T) |
| 10460 | chartInstance->c1_b_autoXCounter, 1, 2192U, 139, 1); |
| 10461 | c1_covSaturation = false; |
| 10462 | if (c1_i62 < 0) { |
| 10463 | c1_covSaturation = true; |
| 10464 | c1_i62 = 0; |
| 10465 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2192U, 139U, 1U); |
| 10466 | } else { |
| 10467 | if (c1_i62 > 65535) { |
| 10468 | c1_i62 = 65535; |
| 10469 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2192U, 139U, 1U); |
| 10470 | } |
| 10471 | |
| 10472 | CV_SATURATION_EVAL(4, 52, 0, 0, c1_covSaturation); |
| 10473 | } |
| 10474 | |
| 10475 | chartInstance->c1_b_autoXCounter = (uint16_T)c1_i62; |
| 10476 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 10477 | &chartInstance->c1_b_autoXCounter); |
| 10478 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 10479 | c1_checkShift(chartInstance); |
| 10480 | } |
| 10481 | |
| 10482 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 52U, chartInstance->c1_sfEvent); |
| 10483 | } |
| 10484 | |
| 10485 | static void c1_c_DEFAULT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 10486 | { |
| 10487 | boolean_T c1_temp; |
| 10488 | boolean_T c1_b_out; |
| 10489 | uint16_T c1_u24; |
| 10490 | boolean_T c1_c_out; |
| 10491 | uint16_T c1_u25; |
| 10492 | boolean_T guard1 = false; |
| 10493 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 183U, chartInstance->c1_sfEvent); |
| 10494 | c1_temp = _SFD_CCP_CALL(5U, 183U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 183U, 0, |
| 10495 | (real_T)(*chartInstance->c1_autoXCom)[0], (real_T) |
| 10496 | chartInstance->c1_lastAutoXCom, 0, 1U, (*chartInstance->c1_autoXCom)[0] != |
| 10497 | chartInstance->c1_lastAutoXCom) != 0U, chartInstance->c1_sfEvent); |
| 10498 | if (c1_temp) { |
| 10499 | c1_temp = _SFD_CCP_CALL(5U, 183U, 1, ((*chartInstance->c1_autoXCom)[1] == |
| 10500 | AUTOX_READY) != 0U, chartInstance->c1_sfEvent); |
| 10501 | } |
| 10502 | |
| 10503 | c1_b_out = (CV_TRANSITION_EVAL(183U, (int32_T)c1_temp) != 0); |
| 10504 | guard1 = false; |
| 10505 | if (c1_b_out) { |
| 10506 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 183U, chartInstance->c1_sfEvent); |
| 10507 | chartInstance->c1_lastAutoXCom = (*chartInstance->c1_autoXCom)[0]; |
| 10508 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 10509 | &chartInstance->c1_lastAutoXCom); |
| 10510 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastAutoXCom, 2U); |
| 10511 | c1_u24 = chartInstance->c1_lastAutoXCom; |
| 10512 | sf_mex_printf("%s =\\n", "lastAutoXCom"); |
| 10513 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, c1_u24); |
| 10514 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 188U, |
| 10515 | chartInstance->c1_sfEvent); |
| 10516 | c1_c_out = (CV_TRANSITION_EVAL(188U, (int32_T)_SFD_CCP_CALL(5U, 188U, 0, |
| 10517 | (boolean_T)CV_RELATIONAL_EVAL(5U, 188U, 0, (real_T) |
| 10518 | *chartInstance->c1_pidSubMode, 0.0, 0, 0U, *chartInstance->c1_pidSubMode == |
| 10519 | 0) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 10520 | if (c1_c_out) { |
| 10521 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 188U, chartInstance->c1_sfEvent); |
| 10522 | chartInstance->c1_c_tp_DEFAULT = 0U; |
| 10523 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_NO_ACTIVE_CHILD; |
| 10524 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 10525 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 10526 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 10527 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 10528 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 10529 | chartInstance->c1_is_ACCELERATION_PID = c1_IN_LAUNCH0; |
| 10530 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 10531 | &chartInstance->c1_is_ACCELERATION_PID); |
| 10532 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 10533 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 10534 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 10535 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 10536 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 10537 | chartInstance->c1_tp_LAUNCH0 = 1U; |
| 10538 | chartInstance->c1_b_autoXCounter = 0U; |
| 10539 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 10540 | &chartInstance->c1_b_autoXCounter); |
| 10541 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 10542 | chartInstance->c1_b_autoX_clutchValue = 0.0; |
| 10543 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 71, 2171U, (void *) |
| 10544 | &chartInstance->c1_b_autoX_clutchValue); |
| 10545 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_autoX_clutchValue, 14U); |
| 10546 | chartInstance->c1_b_autoX_clutchStep = 0.0; |
| 10547 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 72, 2172U, (void *) |
| 10548 | &chartInstance->c1_b_autoX_clutchStep); |
| 10549 | _SFD_DATA_RANGE_CHECK(chartInstance->c1_b_autoX_clutchStep, 13U); |
| 10550 | chartInstance->c1_b_autoX_dtRelease = 0; |
| 10551 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 73, 2173U, (void *) |
| 10552 | &chartInstance->c1_b_autoX_dtRelease); |
| 10553 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoX_dtRelease, 15U); |
| 10554 | if (chartInstance->c1_is_LAUNCH0 == c1_IN_ACTIVE) { |
| 10555 | } else { |
| 10556 | chartInstance->c1_is_LAUNCH0 = c1_IN_ACTIVE; |
| 10557 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 10558 | &chartInstance->c1_is_LAUNCH0); |
| 10559 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 10560 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 10561 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 10562 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 10563 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 10564 | chartInstance->c1_c_tp_ACTIVE = 1U; |
| 10565 | sf_call_output_fcn_enable(chartInstance->S, 16, "ramp", 0); |
| 10566 | } |
| 10567 | |
| 10568 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 214U, chartInstance->c1_sfEvent); |
| 10569 | if (chartInstance->c1_c_is_ACTIVE == c1_b_IN_START) { |
| 10570 | } else { |
| 10571 | chartInstance->c1_c_is_ACTIVE = c1_b_IN_START; |
| 10572 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 10573 | &chartInstance->c1_c_is_ACTIVE); |
| 10574 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 10575 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 10576 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 10577 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 10578 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 10579 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 10580 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 10581 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 10582 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 10583 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 10584 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 1, 418U, 12); |
| 10585 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 12, 1157U, 2); |
| 10586 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 14, 2174U, 1); |
| 10587 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 15, 2182U, 1); |
| 10588 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 10589 | chartInstance->c1_c_tp_START = 1U; |
| 10590 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_READY; |
| 10591 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 10592 | chartInstance->c1_stateFb); |
| 10593 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 10594 | chartInstance->c1_b_autoXCounter = c1_const_AUTOX_WORK_RATE_ms; |
| 10595 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 10596 | &chartInstance->c1_b_autoXCounter); |
| 10597 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_b_autoXCounter, 12U); |
| 10598 | c1_u25 = chartInstance->c1_b_autoXCounter; |
| 10599 | sf_mex_printf("%s =\\n", "autoXCounter"); |
| 10600 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 11, |
| 10601 | c1_u25); |
| 10602 | sf_call_output_fcn_call(chartInstance->S, 4, "Efi_setRPMLimiter", 0); |
| 10603 | c1_Clutch_setValue(chartInstance, 100U); |
| 10604 | } |
| 10605 | } else { |
| 10606 | guard1 = true; |
| 10607 | } |
| 10608 | } else { |
| 10609 | guard1 = true; |
| 10610 | } |
| 10611 | |
| 10612 | if (guard1) { |
| 10613 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 49U, chartInstance->c1_sfEvent); |
| 10614 | *chartInstance->c1_stateFb = (uint16_T)AUTOX_DEFAULT; |
| 10615 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 10616 | chartInstance->c1_stateFb); |
| 10617 | _SFD_DATA_RANGE_CHECK((real_T)*chartInstance->c1_stateFb, 49U); |
| 10618 | c1_checkShift(chartInstance); |
| 10619 | c1_checkClutch(chartInstance); |
| 10620 | } |
| 10621 | |
| 10622 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 49U, chartInstance->c1_sfEvent); |
| 10623 | } |
| 10624 | |
| 10625 | static void c1_NEUTRAL_STATE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 10626 | { |
| 10627 | boolean_T c1_b_out; |
| 10628 | boolean_T c1_c_out; |
| 10629 | boolean_T c1_temp; |
| 10630 | boolean_T c1_b_temp; |
| 10631 | boolean_T c1_d_out; |
| 10632 | boolean_T c1_e_out; |
| 10633 | boolean_T c1_f_out; |
| 10634 | boolean_T c1_g_out; |
| 10635 | boolean_T guard1 = false; |
| 10636 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 79U, chartInstance->c1_sfEvent); |
| 10637 | switch (chartInstance->c1_is_NEUTRAL_STATE) { |
| 10638 | case c1_IN_NEUTRAL: |
| 10639 | CV_STATE_EVAL(79, 0, c1_IN_NEUTRAL); |
| 10640 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 14U, |
| 10641 | chartInstance->c1_sfEvent); |
| 10642 | c1_b_out = (CV_TRANSITION_EVAL(14U, (int32_T)_SFD_CCP_CALL(5U, 14U, 0, |
| 10643 | (chartInstance->c1_sfEvent == c1_event_GearshiftUp) != 0U, |
| 10644 | chartInstance->c1_sfEvent)) != 0); |
| 10645 | guard1 = false; |
| 10646 | if (c1_b_out) { |
| 10647 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 14U, chartInstance->c1_sfEvent); |
| 10648 | guard1 = true; |
| 10649 | } else { |
| 10650 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 92U, |
| 10651 | chartInstance->c1_sfEvent); |
| 10652 | c1_d_out = (CV_TRANSITION_EVAL(92U, (int32_T)_SFD_CCP_CALL(5U, 92U, 0, |
| 10653 | (chartInstance->c1_sfEvent == c1_event_GearshiftDown) != 0U, |
| 10654 | chartInstance->c1_sfEvent)) != 0); |
| 10655 | if (c1_d_out) { |
| 10656 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 92U, chartInstance->c1_sfEvent); |
| 10657 | guard1 = true; |
| 10658 | } else { |
| 10659 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 180U, |
| 10660 | chartInstance->c1_sfEvent); |
| 10661 | c1_g_out = (CV_TRANSITION_EVAL(180U, (int32_T)_SFD_CCP_CALL(5U, 180U, 0, |
| 10662 | (boolean_T)CV_RELATIONAL_EVAL(5U, 180U, 0, (real_T) |
| 10663 | *chartInstance->c1_currGear, 0.0, 0, 1U, *chartInstance->c1_currGear |
| 10664 | != 0) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 10665 | if (c1_g_out) { |
| 10666 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 180U, chartInstance->c1_sfEvent); |
| 10667 | chartInstance->c1_tp_NEUTRAL = 0U; |
| 10668 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10669 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10670 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10671 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10672 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10673 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10674 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10675 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10676 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10677 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 10678 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_NEUTRAL; |
| 10679 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 10680 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 10681 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10682 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10683 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10684 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10685 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10686 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10687 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10688 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10689 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 3); |
| 10690 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 10691 | chartInstance->c1_tp_NO_NEUTRAL = 1U; |
| 10692 | } else { |
| 10693 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 80U, |
| 10694 | chartInstance->c1_sfEvent); |
| 10695 | } |
| 10696 | } |
| 10697 | } |
| 10698 | |
| 10699 | if (guard1) { |
| 10700 | chartInstance->c1_tp_NEUTRAL = 0U; |
| 10701 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10702 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10703 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10704 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10705 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10706 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10707 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10708 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10709 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10710 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 10711 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_UNSET_NEUTRAL; |
| 10712 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 10713 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 10714 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10715 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10716 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10717 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10718 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10719 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10720 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10721 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10722 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 2); |
| 10723 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 83U, chartInstance->c1_sfEvent); |
| 10724 | chartInstance->c1_tp_UNSET_NEUTRAL = 1U; |
| 10725 | } |
| 10726 | |
| 10727 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 80U, chartInstance->c1_sfEvent); |
| 10728 | break; |
| 10729 | |
| 10730 | case c1_IN_NO_NEUTRAL: |
| 10731 | CV_STATE_EVAL(79, 0, c1_IN_NO_NEUTRAL); |
| 10732 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 16U, |
| 10733 | chartInstance->c1_sfEvent); |
| 10734 | c1_c_out = (CV_TRANSITION_EVAL(16U, (int32_T)_SFD_CCP_CALL(5U, 16U, 0, |
| 10735 | (chartInstance->c1_sfEvent == c1_event_GearshiftSetNeutral) != 0U, |
| 10736 | chartInstance->c1_sfEvent)) != 0); |
| 10737 | if (c1_c_out) { |
| 10738 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 16U, chartInstance->c1_sfEvent); |
| 10739 | chartInstance->c1_tp_NO_NEUTRAL = 0U; |
| 10740 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10741 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10742 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10743 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10744 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10745 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10746 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10747 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10748 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10749 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 10750 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_SET_NEUTRAL; |
| 10751 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 10752 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 10753 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10754 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10755 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10756 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10757 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10758 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10759 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10760 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10761 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 4); |
| 10762 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 82U, chartInstance->c1_sfEvent); |
| 10763 | chartInstance->c1_tp_SET_NEUTRAL = 1U; |
| 10764 | } else { |
| 10765 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 81U, |
| 10766 | chartInstance->c1_sfEvent); |
| 10767 | } |
| 10768 | |
| 10769 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 81U, chartInstance->c1_sfEvent); |
| 10770 | break; |
| 10771 | |
| 10772 | case c1_IN_SET_NEUTRAL: |
| 10773 | CV_STATE_EVAL(79, 0, c1_IN_SET_NEUTRAL); |
| 10774 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 17U, |
| 10775 | chartInstance->c1_sfEvent); |
| 10776 | c1_temp = _SFD_CCP_CALL(5U, 17U, 0, (chartInstance->c1_is_GEARSHIFT == |
| 10777 | c1_IN_DOWN_END) != 0U, chartInstance->c1_sfEvent); |
| 10778 | if (!c1_temp) { |
| 10779 | c1_temp = _SFD_CCP_CALL(5U, 17U, 1, (chartInstance->c1_is_GEARSHIFT == |
| 10780 | c1_IN_UP_END) != 0U, chartInstance->c1_sfEvent); |
| 10781 | } |
| 10782 | |
| 10783 | c1_e_out = (CV_TRANSITION_EVAL(17U, (int32_T)c1_temp) != 0); |
| 10784 | if (c1_e_out) { |
| 10785 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 17U, chartInstance->c1_sfEvent); |
| 10786 | chartInstance->c1_tp_SET_NEUTRAL = 0U; |
| 10787 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10788 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10789 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10790 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10791 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10792 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10793 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10794 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10795 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10796 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 82U, chartInstance->c1_sfEvent); |
| 10797 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NEUTRAL; |
| 10798 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 10799 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 10800 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10801 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10802 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10803 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10804 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10805 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10806 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10807 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10808 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 1); |
| 10809 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 10810 | chartInstance->c1_tp_NEUTRAL = 1U; |
| 10811 | } else { |
| 10812 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 82U, |
| 10813 | chartInstance->c1_sfEvent); |
| 10814 | } |
| 10815 | |
| 10816 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 82U, chartInstance->c1_sfEvent); |
| 10817 | break; |
| 10818 | |
| 10819 | case c1_IN_UNSET_NEUTRAL: |
| 10820 | CV_STATE_EVAL(79, 0, c1_IN_UNSET_NEUTRAL); |
| 10821 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 15U, |
| 10822 | chartInstance->c1_sfEvent); |
| 10823 | c1_b_temp = _SFD_CCP_CALL(5U, 15U, 0, (chartInstance->c1_is_GEARSHIFT == |
| 10824 | c1_IN_DOWN_END) != 0U, chartInstance->c1_sfEvent); |
| 10825 | if (!c1_b_temp) { |
| 10826 | c1_b_temp = _SFD_CCP_CALL(5U, 15U, 1, (chartInstance->c1_is_GEARSHIFT == |
| 10827 | c1_IN_UP_END) != 0U, chartInstance->c1_sfEvent); |
| 10828 | } |
| 10829 | |
| 10830 | c1_f_out = (CV_TRANSITION_EVAL(15U, (int32_T)c1_b_temp) != 0); |
| 10831 | if (c1_f_out) { |
| 10832 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 10833 | chartInstance->c1_tp_UNSET_NEUTRAL = 0U; |
| 10834 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10835 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10836 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10837 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10838 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10839 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10840 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10841 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10842 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10843 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 83U, chartInstance->c1_sfEvent); |
| 10844 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_NEUTRAL; |
| 10845 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 10846 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 10847 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10848 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10849 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10850 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10851 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10852 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10853 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10854 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10855 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 36, 31U, 3); |
| 10856 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 10857 | chartInstance->c1_tp_NO_NEUTRAL = 1U; |
| 10858 | } else { |
| 10859 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 83U, |
| 10860 | chartInstance->c1_sfEvent); |
| 10861 | } |
| 10862 | |
| 10863 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 83U, chartInstance->c1_sfEvent); |
| 10864 | break; |
| 10865 | |
| 10866 | default: |
| 10867 | CV_STATE_EVAL(79, 0, 0); |
| 10868 | |
| 10869 | /* Unreachable state, for coverage only */ |
| 10870 | chartInstance->c1_is_NEUTRAL_STATE = c1_IN_NO_ACTIVE_CHILD; |
| 10871 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 10872 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 10873 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 10874 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 10875 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 10876 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 10877 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 10878 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 10879 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 10880 | break; |
| 10881 | } |
| 10882 | |
| 10883 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 79U, chartInstance->c1_sfEvent); |
| 10884 | } |
| 10885 | |
| 10886 | static void c1_GEARSHIFT(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 10887 | { |
| 10888 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 7U, chartInstance->c1_sfEvent); |
| 10889 | switch (chartInstance->c1_is_GEARSHIFT) { |
| 10890 | case c1_IN_DOWNSHIFTING: |
| 10891 | CV_STATE_EVAL(7, 0, c1_IN_DOWNSHIFTING); |
| 10892 | c1_DOWNSHIFTING(chartInstance); |
| 10893 | break; |
| 10894 | |
| 10895 | case c1_IN_DOWN_END: |
| 10896 | CV_STATE_EVAL(7, 0, c1_IN_DOWN_END); |
| 10897 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 18U, chartInstance->c1_sfEvent); |
| 10898 | chartInstance->c1_tp_DOWN_END = 0U; |
| 10899 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 10900 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 10901 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 10902 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 10903 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 10904 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 10905 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 10906 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 10907 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 10908 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 10909 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 10910 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 10911 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 10912 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 18U, chartInstance->c1_sfEvent); |
| 10913 | chartInstance->c1_is_GEARSHIFT = c1_IN_IDLE; |
| 10914 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 10915 | &chartInstance->c1_is_GEARSHIFT); |
| 10916 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 10917 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 10918 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 10919 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 10920 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 10921 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 10922 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 10923 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 10924 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 10925 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 10926 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 10927 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 10928 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 2); |
| 10929 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 10930 | chartInstance->c1_tp_IDLE = 1U; |
| 10931 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 18U, chartInstance->c1_sfEvent); |
| 10932 | break; |
| 10933 | |
| 10934 | case c1_IN_IDLE: |
| 10935 | CV_STATE_EVAL(7, 0, c1_IN_IDLE); |
| 10936 | c1_IDLE(chartInstance); |
| 10937 | break; |
| 10938 | |
| 10939 | case c1_IN_INIT: |
| 10940 | CV_STATE_EVAL(7, 0, c1_IN_INIT); |
| 10941 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 1U, chartInstance->c1_sfEvent); |
| 10942 | chartInstance->c1_b_tp_INIT = 0U; |
| 10943 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 10944 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 10945 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 10946 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 10947 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 10948 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 10949 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 10950 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 10951 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 10952 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 10953 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 10954 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 10955 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 10956 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 21U, chartInstance->c1_sfEvent); |
| 10957 | chartInstance->c1_is_GEARSHIFT = c1_IN_IDLE; |
| 10958 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 10959 | &chartInstance->c1_is_GEARSHIFT); |
| 10960 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 10961 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 10962 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 10963 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 10964 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 10965 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 10966 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 10967 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 10968 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 10969 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 10970 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 10971 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 10972 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 2); |
| 10973 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 10974 | chartInstance->c1_tp_IDLE = 1U; |
| 10975 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 21U, chartInstance->c1_sfEvent); |
| 10976 | break; |
| 10977 | |
| 10978 | case c1_IN_UPSHIFTING: |
| 10979 | CV_STATE_EVAL(7, 0, c1_IN_UPSHIFTING); |
| 10980 | c1_UPSHIFTING(chartInstance); |
| 10981 | break; |
| 10982 | |
| 10983 | case c1_IN_UP_END: |
| 10984 | CV_STATE_EVAL(7, 0, c1_IN_UP_END); |
| 10985 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 10986 | chartInstance->c1_tp_UP_END = 0U; |
| 10987 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 10988 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 10989 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 10990 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 10991 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 10992 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 10993 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 10994 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 10995 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 10996 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 10997 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 10998 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 10999 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11000 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 33U, chartInstance->c1_sfEvent); |
| 11001 | chartInstance->c1_is_GEARSHIFT = c1_IN_IDLE; |
| 11002 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 11003 | &chartInstance->c1_is_GEARSHIFT); |
| 11004 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11005 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11006 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11007 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11008 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11009 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11010 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11011 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11012 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11013 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11014 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11015 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11016 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 2); |
| 11017 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 11018 | chartInstance->c1_tp_IDLE = 1U; |
| 11019 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 33U, chartInstance->c1_sfEvent); |
| 11020 | break; |
| 11021 | |
| 11022 | default: |
| 11023 | CV_STATE_EVAL(7, 0, 0); |
| 11024 | |
| 11025 | /* Unreachable state, for coverage only */ |
| 11026 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 11027 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11028 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11029 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11030 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11031 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11032 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11033 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11034 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11035 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11036 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11037 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11038 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11039 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 11040 | break; |
| 11041 | } |
| 11042 | |
| 11043 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 7U, chartInstance->c1_sfEvent); |
| 11044 | } |
| 11045 | |
| 11046 | static void c1_UPSHIFTING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 11047 | { |
| 11048 | boolean_T c1_b_out; |
| 11049 | boolean_T c1_c_out; |
| 11050 | boolean_T c1_d_out; |
| 11051 | int32_T c1_q0; |
| 11052 | int32_T c1_b_q0; |
| 11053 | int32_T c1_c_q0; |
| 11054 | int32_T c1_q1; |
| 11055 | int32_T c1_b_q1; |
| 11056 | int32_T c1_c_q1; |
| 11057 | boolean_T c1_covSaturation; |
| 11058 | boolean_T c1_b_covSaturation; |
| 11059 | boolean_T c1_c_covSaturation; |
| 11060 | int32_T c1_qY; |
| 11061 | int32_T c1_b_qY; |
| 11062 | int32_T c1_c_qY; |
| 11063 | boolean_T c1_temp; |
| 11064 | boolean_T c1_e_out; |
| 11065 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11066 | switch (chartInstance->c1_is_UPSHIFTING) { |
| 11067 | case c1_IN_UP_BRAKE: |
| 11068 | CV_STATE_EVAL(22, 0, c1_IN_UP_BRAKE); |
| 11069 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 7U, chartInstance->c1_sfEvent); |
| 11070 | c1_b_out = (CV_TRANSITION_EVAL(7U, (int32_T)_SFD_CCP_CALL(5U, 7U, 0, |
| 11071 | (boolean_T)CV_RELATIONAL_EVAL(5U, 7U, 0, (real_T) |
| 11072 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 11073 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 11074 | if (c1_b_out) { |
| 11075 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 7U, chartInstance->c1_sfEvent); |
| 11076 | chartInstance->c1_tp_UP_BRAKE = 0U; |
| 11077 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 11078 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11079 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11080 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11081 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11082 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11083 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11084 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11085 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11086 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 11087 | chartInstance->c1_tp_UPSHIFTING = 0U; |
| 11088 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 11089 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11090 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11091 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11092 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11093 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11094 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11095 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11096 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11097 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11098 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11099 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11100 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11101 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 0); |
| 11102 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 11103 | &chartInstance->c1_is_UPSHIFTING); |
| 11104 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 22U, chartInstance->c1_sfEvent); |
| 11105 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_UP_END) { |
| 11106 | } else { |
| 11107 | chartInstance->c1_is_GEARSHIFT = c1_IN_UP_END; |
| 11108 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 11109 | &chartInstance->c1_is_GEARSHIFT); |
| 11110 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11111 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11112 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11113 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11114 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11115 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11116 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11117 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11118 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11119 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11120 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11121 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11122 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 10); |
| 11123 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 33U, chartInstance->c1_sfEvent); |
| 11124 | chartInstance->c1_tp_UP_END = 1U; |
| 11125 | sf_call_output_fcn_call(chartInstance->S, 10, "Gearshift_free", 0); |
| 11126 | } |
| 11127 | } else { |
| 11128 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 23U, |
| 11129 | chartInstance->c1_sfEvent); |
| 11130 | c1_q0 = chartInstance->c1_ticksCounter; |
| 11131 | c1_q1 = 1; |
| 11132 | c1_covSaturation = false; |
| 11133 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 11134 | c1_covSaturation = true; |
| 11135 | c1_qY = MAX_int32_T; |
| 11136 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 12U, 114U, 1U); |
| 11137 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 11138 | c1_covSaturation = true; |
| 11139 | c1_qY = MIN_int32_T; |
| 11140 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 12U, 114U, 1U); |
| 11141 | } else { |
| 11142 | c1_qY = c1_q0 - c1_q1; |
| 11143 | } |
| 11144 | |
| 11145 | CV_SATURATION_EVAL(4, 23, 0, 0, c1_covSaturation); |
| 11146 | chartInstance->c1_ticksCounter = c1_qY; |
| 11147 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11148 | &chartInstance->c1_ticksCounter); |
| 11149 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11150 | } |
| 11151 | |
| 11152 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 23U, chartInstance->c1_sfEvent); |
| 11153 | if (chartInstance->c1_is_GEARSHIFT != c1_IN_UPSHIFTING) { |
| 11154 | } else { |
| 11155 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11156 | } |
| 11157 | break; |
| 11158 | |
| 11159 | case c1_IN_UP_PUSH: |
| 11160 | CV_STATE_EVAL(22, 0, c1_IN_UP_PUSH); |
| 11161 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 5U, chartInstance->c1_sfEvent); |
| 11162 | c1_c_out = (CV_TRANSITION_EVAL(5U, (int32_T)_SFD_CCP_CALL(5U, 5U, 0, |
| 11163 | (boolean_T)CV_RELATIONAL_EVAL(5U, 5U, 0, (real_T) |
| 11164 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 11165 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 11166 | if (c1_c_out) { |
| 11167 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 5U, chartInstance->c1_sfEvent); |
| 11168 | c1_exit_internal_UP_PUSH(chartInstance); |
| 11169 | chartInstance->c1_tp_UP_PUSH = 0U; |
| 11170 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 11171 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11172 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11173 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11174 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11175 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11176 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11177 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11178 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11179 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 57, 10U, 0); |
| 11180 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 57, 10U, (void *) |
| 11181 | &chartInstance->c1_is_UP_PUSH); |
| 11182 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 24U, chartInstance->c1_sfEvent); |
| 11183 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_REBOUND) { |
| 11184 | } else { |
| 11185 | chartInstance->c1_is_UPSHIFTING = c1_IN_UP_REBOUND; |
| 11186 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 11187 | &chartInstance->c1_is_UPSHIFTING); |
| 11188 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11189 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11190 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11191 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11192 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11193 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11194 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11195 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11196 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 27U, chartInstance->c1_sfEvent); |
| 11197 | chartInstance->c1_tp_UP_REBOUND = 1U; |
| 11198 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 11199 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11200 | &chartInstance->c1_ticksCounter); |
| 11201 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11202 | } |
| 11203 | |
| 11204 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 65U, chartInstance->c1_sfEvent); |
| 11205 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 64U, |
| 11206 | chartInstance->c1_sfEvent); |
| 11207 | c1_temp = _SFD_CCP_CALL(5U, 64U, 0, (chartInstance->c1_is_NEUTRAL_STATE == |
| 11208 | c1_IN_SET_NEUTRAL) != 0U, chartInstance->c1_sfEvent); |
| 11209 | if (c1_temp) { |
| 11210 | c1_temp = _SFD_CCP_CALL(5U, 64U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 11211 | 64U, 0, (real_T)*chartInstance->c1_clutchCurrVal, 80.0, 0, 3U, |
| 11212 | *chartInstance->c1_clutchCurrVal <= 80) != 0U, |
| 11213 | chartInstance->c1_sfEvent); |
| 11214 | } |
| 11215 | |
| 11216 | c1_e_out = (CV_TRANSITION_EVAL(64U, (int32_T)c1_temp) != 0); |
| 11217 | if (c1_e_out) { |
| 11218 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 64U, chartInstance->c1_sfEvent); |
| 11219 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_SettingNeutral) { |
| 11220 | } else { |
| 11221 | chartInstance->c1_is_UP_REBOUND = c1_IN_SettingNeutral; |
| 11222 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 60, 11U, (void *) |
| 11223 | &chartInstance->c1_is_UP_REBOUND); |
| 11224 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11225 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11226 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11227 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11228 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 7); |
| 11229 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 5); |
| 11230 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 60, 11U, 1); |
| 11231 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 29U, chartInstance->c1_sfEvent); |
| 11232 | chartInstance->c1_tp_SettingNeutral = 1U; |
| 11233 | c1_Clutch_setValue(chartInstance, 0U); |
| 11234 | sf_call_output_fcn_call(chartInstance->S, 6, "Gearshift_rebound", 0); |
| 11235 | } |
| 11236 | } else { |
| 11237 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 66U, chartInstance->c1_sfEvent); |
| 11238 | if (chartInstance->c1_is_UP_REBOUND == c1_IN_Default) { |
| 11239 | } else { |
| 11240 | chartInstance->c1_is_UP_REBOUND = c1_IN_Default; |
| 11241 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 60, 11U, (void *) |
| 11242 | &chartInstance->c1_is_UP_REBOUND); |
| 11243 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11244 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11245 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11246 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11247 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 8); |
| 11248 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 6); |
| 11249 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 60, 11U, 2); |
| 11250 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 11251 | chartInstance->c1_tp_Default = 1U; |
| 11252 | sf_call_output_fcn_call(chartInstance->S, 6, "Gearshift_rebound", 0); |
| 11253 | } |
| 11254 | } |
| 11255 | } else { |
| 11256 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 24U, |
| 11257 | chartInstance->c1_sfEvent); |
| 11258 | c1_b_q0 = chartInstance->c1_ticksCounter; |
| 11259 | c1_b_q1 = 1; |
| 11260 | c1_b_covSaturation = false; |
| 11261 | if ((c1_b_q1 < 0) && (c1_b_q0 > c1_b_q1 + MAX_int32_T)) { |
| 11262 | c1_b_covSaturation = true; |
| 11263 | c1_b_qY = MAX_int32_T; |
| 11264 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 10U, 89U, 1U); |
| 11265 | } else if ((c1_b_q1 > 0) && (c1_b_q0 < c1_b_q1 + MIN_int32_T)) { |
| 11266 | c1_b_covSaturation = true; |
| 11267 | c1_b_qY = MIN_int32_T; |
| 11268 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 10U, 89U, 1U); |
| 11269 | } else { |
| 11270 | c1_b_qY = c1_b_q0 - c1_b_q1; |
| 11271 | } |
| 11272 | |
| 11273 | CV_SATURATION_EVAL(4, 24, 0, 0, c1_b_covSaturation); |
| 11274 | chartInstance->c1_ticksCounter = c1_b_qY; |
| 11275 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11276 | &chartInstance->c1_ticksCounter); |
| 11277 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11278 | switch (chartInstance->c1_is_UP_PUSH) { |
| 11279 | case c1_IN_CutOff: |
| 11280 | CV_STATE_EVAL(24, 0, c1_IN_CutOff); |
| 11281 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 25U, |
| 11282 | chartInstance->c1_sfEvent); |
| 11283 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 25U, chartInstance->c1_sfEvent); |
| 11284 | break; |
| 11285 | |
| 11286 | case c1_b_IN_Default: |
| 11287 | CV_STATE_EVAL(24, 0, c1_b_IN_Default); |
| 11288 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 26U, |
| 11289 | chartInstance->c1_sfEvent); |
| 11290 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 26U, chartInstance->c1_sfEvent); |
| 11291 | break; |
| 11292 | |
| 11293 | default: |
| 11294 | CV_STATE_EVAL(24, 0, 0); |
| 11295 | |
| 11296 | /* Unreachable state, for coverage only */ |
| 11297 | chartInstance->c1_is_UP_PUSH = c1_IN_NO_ACTIVE_CHILD; |
| 11298 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11299 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11300 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11301 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11302 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 11303 | break; |
| 11304 | } |
| 11305 | } |
| 11306 | |
| 11307 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 24U, chartInstance->c1_sfEvent); |
| 11308 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11309 | break; |
| 11310 | |
| 11311 | case c1_IN_UP_REBOUND: |
| 11312 | CV_STATE_EVAL(22, 0, c1_IN_UP_REBOUND); |
| 11313 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 6U, chartInstance->c1_sfEvent); |
| 11314 | c1_d_out = (CV_TRANSITION_EVAL(6U, (int32_T)_SFD_CCP_CALL(5U, 6U, 0, |
| 11315 | (boolean_T)CV_RELATIONAL_EVAL(5U, 6U, 0, (real_T) |
| 11316 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 11317 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 11318 | if (c1_d_out) { |
| 11319 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 6U, chartInstance->c1_sfEvent); |
| 11320 | c1_exit_internal_UP_REBOUND(chartInstance); |
| 11321 | chartInstance->c1_tp_UP_REBOUND = 0U; |
| 11322 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 11323 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11324 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11325 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11326 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11327 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11328 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11329 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11330 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11331 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 60, 11U, 0); |
| 11332 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 60, 11U, (void *) |
| 11333 | &chartInstance->c1_is_UP_REBOUND); |
| 11334 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 27U, chartInstance->c1_sfEvent); |
| 11335 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_BRAKE) { |
| 11336 | } else { |
| 11337 | chartInstance->c1_is_UPSHIFTING = c1_IN_UP_BRAKE; |
| 11338 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 11339 | &chartInstance->c1_is_UPSHIFTING); |
| 11340 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11341 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11342 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11343 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11344 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11345 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11346 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11347 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11348 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 9); |
| 11349 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 7); |
| 11350 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 11351 | chartInstance->c1_tp_UP_BRAKE = 1U; |
| 11352 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 11353 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11354 | &chartInstance->c1_ticksCounter); |
| 11355 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11356 | sf_call_output_fcn_call(chartInstance->S, 9, "Gearshift_brake", 0); |
| 11357 | } |
| 11358 | } else { |
| 11359 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 27U, |
| 11360 | chartInstance->c1_sfEvent); |
| 11361 | c1_c_q0 = chartInstance->c1_ticksCounter; |
| 11362 | c1_c_q1 = 1; |
| 11363 | c1_c_covSaturation = false; |
| 11364 | if ((c1_c_q1 < 0) && (c1_c_q0 > c1_c_q1 + MAX_int32_T)) { |
| 11365 | c1_c_covSaturation = true; |
| 11366 | c1_c_qY = MAX_int32_T; |
| 11367 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 11U, 92U, 1U); |
| 11368 | } else if ((c1_c_q1 > 0) && (c1_c_q0 < c1_c_q1 + MIN_int32_T)) { |
| 11369 | c1_c_covSaturation = true; |
| 11370 | c1_c_qY = MIN_int32_T; |
| 11371 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 11U, 92U, 1U); |
| 11372 | } else { |
| 11373 | c1_c_qY = c1_c_q0 - c1_c_q1; |
| 11374 | } |
| 11375 | |
| 11376 | CV_SATURATION_EVAL(4, 27, 0, 0, c1_c_covSaturation); |
| 11377 | chartInstance->c1_ticksCounter = c1_c_qY; |
| 11378 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11379 | &chartInstance->c1_ticksCounter); |
| 11380 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11381 | switch (chartInstance->c1_is_UP_REBOUND) { |
| 11382 | case c1_IN_Default: |
| 11383 | CV_STATE_EVAL(27, 0, c1_IN_Default); |
| 11384 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 28U, |
| 11385 | chartInstance->c1_sfEvent); |
| 11386 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 28U, chartInstance->c1_sfEvent); |
| 11387 | break; |
| 11388 | |
| 11389 | case c1_IN_SettingNeutral: |
| 11390 | CV_STATE_EVAL(27, 0, c1_IN_SettingNeutral); |
| 11391 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 29U, |
| 11392 | chartInstance->c1_sfEvent); |
| 11393 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 29U, chartInstance->c1_sfEvent); |
| 11394 | break; |
| 11395 | |
| 11396 | default: |
| 11397 | CV_STATE_EVAL(27, 0, 0); |
| 11398 | |
| 11399 | /* Unreachable state, for coverage only */ |
| 11400 | chartInstance->c1_is_UP_REBOUND = c1_IN_NO_ACTIVE_CHILD; |
| 11401 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11402 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11403 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11404 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11405 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 11406 | break; |
| 11407 | } |
| 11408 | } |
| 11409 | |
| 11410 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 27U, chartInstance->c1_sfEvent); |
| 11411 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11412 | break; |
| 11413 | |
| 11414 | case c1_IN_UP_START: |
| 11415 | CV_STATE_EVAL(22, 0, c1_IN_UP_START); |
| 11416 | c1_UP_START(chartInstance); |
| 11417 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11418 | break; |
| 11419 | |
| 11420 | default: |
| 11421 | CV_STATE_EVAL(22, 0, 0); |
| 11422 | |
| 11423 | /* Unreachable state, for coverage only */ |
| 11424 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 11425 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11426 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11427 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11428 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11429 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11430 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11431 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11432 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11433 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 11434 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 22U, chartInstance->c1_sfEvent); |
| 11435 | break; |
| 11436 | } |
| 11437 | } |
| 11438 | |
| 11439 | static void c1_exit_internal_UP_REBOUND(SFc1_GCU_Model_genCodeInstanceStruct |
| 11440 | *chartInstance) |
| 11441 | { |
| 11442 | switch (chartInstance->c1_is_UP_REBOUND) { |
| 11443 | case c1_IN_Default: |
| 11444 | CV_STATE_EVAL(27, 1, c1_IN_Default); |
| 11445 | chartInstance->c1_tp_Default = 0U; |
| 11446 | chartInstance->c1_is_UP_REBOUND = c1_IN_NO_ACTIVE_CHILD; |
| 11447 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11448 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11449 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11450 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11451 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 11452 | break; |
| 11453 | |
| 11454 | case c1_IN_SettingNeutral: |
| 11455 | CV_STATE_EVAL(27, 1, c1_IN_SettingNeutral); |
| 11456 | chartInstance->c1_tp_SettingNeutral = 0U; |
| 11457 | chartInstance->c1_is_UP_REBOUND = c1_IN_NO_ACTIVE_CHILD; |
| 11458 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11459 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11460 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11461 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11462 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 29U, chartInstance->c1_sfEvent); |
| 11463 | break; |
| 11464 | |
| 11465 | default: |
| 11466 | CV_STATE_EVAL(27, 1, 0); |
| 11467 | chartInstance->c1_is_UP_REBOUND = c1_IN_NO_ACTIVE_CHILD; |
| 11468 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 11469 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 11470 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 11471 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 11472 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 11473 | break; |
| 11474 | } |
| 11475 | } |
| 11476 | |
| 11477 | static void c1_exit_internal_UP_PUSH(SFc1_GCU_Model_genCodeInstanceStruct |
| 11478 | *chartInstance) |
| 11479 | { |
| 11480 | switch (chartInstance->c1_is_UP_PUSH) { |
| 11481 | case c1_IN_CutOff: |
| 11482 | CV_STATE_EVAL(24, 1, c1_IN_CutOff); |
| 11483 | chartInstance->c1_tp_CutOff = 0U; |
| 11484 | chartInstance->c1_is_UP_PUSH = c1_IN_NO_ACTIVE_CHILD; |
| 11485 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11486 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11487 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11488 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11489 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 11490 | break; |
| 11491 | |
| 11492 | case c1_b_IN_Default: |
| 11493 | CV_STATE_EVAL(24, 1, c1_b_IN_Default); |
| 11494 | chartInstance->c1_b_tp_Default = 0U; |
| 11495 | chartInstance->c1_is_UP_PUSH = c1_IN_NO_ACTIVE_CHILD; |
| 11496 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11497 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11498 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11499 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11500 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 26U, chartInstance->c1_sfEvent); |
| 11501 | break; |
| 11502 | |
| 11503 | default: |
| 11504 | CV_STATE_EVAL(24, 1, 0); |
| 11505 | chartInstance->c1_is_UP_PUSH = c1_IN_NO_ACTIVE_CHILD; |
| 11506 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11507 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11508 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11509 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11510 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 11511 | break; |
| 11512 | } |
| 11513 | } |
| 11514 | |
| 11515 | static void c1_UP_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 11516 | { |
| 11517 | boolean_T c1_b_out; |
| 11518 | int32_T c1_q0; |
| 11519 | int32_T c1_q1; |
| 11520 | boolean_T c1_covSaturation; |
| 11521 | int32_T c1_qY; |
| 11522 | boolean_T c1_c_out; |
| 11523 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 4U, chartInstance->c1_sfEvent); |
| 11524 | c1_b_out = (CV_TRANSITION_EVAL(4U, (int32_T)_SFD_CCP_CALL(5U, 4U, 0, |
| 11525 | (boolean_T)CV_RELATIONAL_EVAL(5U, 4U, 0, (real_T) |
| 11526 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter == |
| 11527 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 11528 | if (c1_b_out) { |
| 11529 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 4U, chartInstance->c1_sfEvent); |
| 11530 | c1_exit_internal_UP_START(chartInstance); |
| 11531 | chartInstance->c1_tp_UP_START = 0U; |
| 11532 | chartInstance->c1_is_UPSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 11533 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11534 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11535 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11536 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11537 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11538 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11539 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11540 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11541 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 63, 9U, 0); |
| 11542 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 63, 9U, (void *) |
| 11543 | &chartInstance->c1_is_UP_START); |
| 11544 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 30U, chartInstance->c1_sfEvent); |
| 11545 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_PUSH) { |
| 11546 | } else { |
| 11547 | chartInstance->c1_is_UPSHIFTING = c1_IN_UP_PUSH; |
| 11548 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 11549 | &chartInstance->c1_is_UPSHIFTING); |
| 11550 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11551 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11552 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11553 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11554 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11555 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11556 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11557 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11558 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 24U, chartInstance->c1_sfEvent); |
| 11559 | chartInstance->c1_tp_UP_PUSH = 1U; |
| 11560 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 11561 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11562 | &chartInstance->c1_ticksCounter); |
| 11563 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11564 | } |
| 11565 | |
| 11566 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 75U, chartInstance->c1_sfEvent); |
| 11567 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 77U, |
| 11568 | chartInstance->c1_sfEvent); |
| 11569 | c1_c_out = (CV_TRANSITION_EVAL(77U, !_SFD_CCP_CALL(5U, 77U, 0, |
| 11570 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 11571 | chartInstance->c1_sfEvent)) != 0); |
| 11572 | if (c1_c_out) { |
| 11573 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 77U, chartInstance->c1_sfEvent); |
| 11574 | if (chartInstance->c1_is_UP_PUSH == c1_IN_CutOff) { |
| 11575 | } else { |
| 11576 | chartInstance->c1_is_UP_PUSH = c1_IN_CutOff; |
| 11577 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 57, 10U, (void *) |
| 11578 | &chartInstance->c1_is_UP_PUSH); |
| 11579 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11580 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11581 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11582 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11583 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 5); |
| 11584 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 3); |
| 11585 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 57, 10U, 1); |
| 11586 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 11587 | chartInstance->c1_tp_CutOff = 1U; |
| 11588 | sf_call_output_fcn_call(chartInstance->S, 3, "Efi_unsetCut", 0); |
| 11589 | sf_call_output_fcn_call(chartInstance->S, 7, "Gearshift_up_push", 0); |
| 11590 | } |
| 11591 | } else { |
| 11592 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 76U, chartInstance->c1_sfEvent); |
| 11593 | if (chartInstance->c1_is_UP_PUSH == c1_b_IN_Default) { |
| 11594 | } else { |
| 11595 | chartInstance->c1_is_UP_PUSH = c1_b_IN_Default; |
| 11596 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 57, 10U, (void *) |
| 11597 | &chartInstance->c1_is_UP_PUSH); |
| 11598 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 11599 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 11600 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 11601 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 11602 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 17); |
| 11603 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 4); |
| 11604 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 57, 10U, 2); |
| 11605 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 26U, chartInstance->c1_sfEvent); |
| 11606 | chartInstance->c1_b_tp_Default = 1U; |
| 11607 | sf_call_output_fcn_call(chartInstance->S, 7, "Gearshift_up_push", 0); |
| 11608 | } |
| 11609 | } |
| 11610 | } else { |
| 11611 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 30U, chartInstance->c1_sfEvent); |
| 11612 | c1_q0 = chartInstance->c1_ticksCounter; |
| 11613 | c1_q1 = 1; |
| 11614 | c1_covSaturation = false; |
| 11615 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 11616 | c1_covSaturation = true; |
| 11617 | c1_qY = MAX_int32_T; |
| 11618 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 9U, 94U, 1U); |
| 11619 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 11620 | c1_covSaturation = true; |
| 11621 | c1_qY = MIN_int32_T; |
| 11622 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 9U, 94U, 1U); |
| 11623 | } else { |
| 11624 | c1_qY = c1_q0 - c1_q1; |
| 11625 | } |
| 11626 | |
| 11627 | CV_SATURATION_EVAL(4, 30, 1, 0, c1_covSaturation); |
| 11628 | chartInstance->c1_ticksCounter = c1_qY; |
| 11629 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11630 | &chartInstance->c1_ticksCounter); |
| 11631 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11632 | switch (chartInstance->c1_is_UP_START) { |
| 11633 | case c1_IN_Default: |
| 11634 | CV_STATE_EVAL(30, 0, c1_IN_Default); |
| 11635 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 31U, |
| 11636 | chartInstance->c1_sfEvent); |
| 11637 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 31U, chartInstance->c1_sfEvent); |
| 11638 | break; |
| 11639 | |
| 11640 | case c1_IN_SettingNeutral: |
| 11641 | CV_STATE_EVAL(30, 0, c1_IN_SettingNeutral); |
| 11642 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 32U, |
| 11643 | chartInstance->c1_sfEvent); |
| 11644 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 32U, chartInstance->c1_sfEvent); |
| 11645 | break; |
| 11646 | |
| 11647 | default: |
| 11648 | CV_STATE_EVAL(30, 0, 0); |
| 11649 | |
| 11650 | /* Unreachable state, for coverage only */ |
| 11651 | chartInstance->c1_is_UP_START = c1_IN_NO_ACTIVE_CHILD; |
| 11652 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11653 | (chartInstance->c1_is_UP_START == 1)); |
| 11654 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11655 | (chartInstance->c1_is_UP_START == 2)); |
| 11656 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 11657 | break; |
| 11658 | } |
| 11659 | } |
| 11660 | |
| 11661 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 30U, chartInstance->c1_sfEvent); |
| 11662 | } |
| 11663 | |
| 11664 | static void c1_exit_internal_UP_START(SFc1_GCU_Model_genCodeInstanceStruct |
| 11665 | *chartInstance) |
| 11666 | { |
| 11667 | switch (chartInstance->c1_is_UP_START) { |
| 11668 | case c1_IN_Default: |
| 11669 | CV_STATE_EVAL(30, 1, c1_IN_Default); |
| 11670 | chartInstance->c1_c_tp_Default = 0U; |
| 11671 | chartInstance->c1_is_UP_START = c1_IN_NO_ACTIVE_CHILD; |
| 11672 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11673 | (chartInstance->c1_is_UP_START == 1)); |
| 11674 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11675 | (chartInstance->c1_is_UP_START == 2)); |
| 11676 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 11677 | break; |
| 11678 | |
| 11679 | case c1_IN_SettingNeutral: |
| 11680 | CV_STATE_EVAL(30, 1, c1_IN_SettingNeutral); |
| 11681 | chartInstance->c1_b_tp_SettingNeutral = 0U; |
| 11682 | chartInstance->c1_is_UP_START = c1_IN_NO_ACTIVE_CHILD; |
| 11683 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11684 | (chartInstance->c1_is_UP_START == 1)); |
| 11685 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11686 | (chartInstance->c1_is_UP_START == 2)); |
| 11687 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 32U, chartInstance->c1_sfEvent); |
| 11688 | break; |
| 11689 | |
| 11690 | default: |
| 11691 | CV_STATE_EVAL(30, 1, 0); |
| 11692 | chartInstance->c1_is_UP_START = c1_IN_NO_ACTIVE_CHILD; |
| 11693 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11694 | (chartInstance->c1_is_UP_START == 1)); |
| 11695 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11696 | (chartInstance->c1_is_UP_START == 2)); |
| 11697 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 11698 | break; |
| 11699 | } |
| 11700 | } |
| 11701 | |
| 11702 | static void c1_IDLE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 11703 | { |
| 11704 | boolean_T c1_temp; |
| 11705 | boolean_T c1_b_temp; |
| 11706 | boolean_T c1_b_out; |
| 11707 | boolean_T c1_c_out; |
| 11708 | boolean_T c1_c_temp; |
| 11709 | boolean_T c1_d_temp; |
| 11710 | boolean_T c1_d_out; |
| 11711 | int32_T c1_q0; |
| 11712 | boolean_T c1_e_out; |
| 11713 | int32_T c1_q1; |
| 11714 | boolean_T c1_covSaturation; |
| 11715 | boolean_T c1_e_temp; |
| 11716 | int32_T c1_qY; |
| 11717 | boolean_T c1_f_out; |
| 11718 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 2U, chartInstance->c1_sfEvent); |
| 11719 | c1_temp = _SFD_CCP_CALL(5U, 2U, 0, (chartInstance->c1_sfEvent == |
| 11720 | c1_event_GearshiftUp) != 0U, chartInstance->c1_sfEvent); |
| 11721 | if (c1_temp) { |
| 11722 | c1_b_temp = _SFD_CCP_CALL(5U, 2U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, 2U, 0, |
| 11723 | (real_T)*chartInstance->c1_currGear, 5.0, 0, 2U, |
| 11724 | *chartInstance->c1_currGear < 5) != 0U, chartInstance->c1_sfEvent); |
| 11725 | if (!c1_b_temp) { |
| 11726 | c1_b_temp = _SFD_CCP_CALL(5U, 2U, 2, (boolean_T)CV_RELATIONAL_EVAL(5U, 2U, |
| 11727 | 1, (real_T)*chartInstance->c1_currGear, 8.0, 0, 0U, |
| 11728 | *chartInstance->c1_currGear == 8) != 0U, chartInstance->c1_sfEvent); |
| 11729 | } |
| 11730 | |
| 11731 | c1_temp = c1_b_temp; |
| 11732 | } |
| 11733 | |
| 11734 | c1_b_out = (CV_TRANSITION_EVAL(2U, (int32_T)c1_temp) != 0); |
| 11735 | if (c1_b_out) { |
| 11736 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 2U, chartInstance->c1_sfEvent); |
| 11737 | chartInstance->c1_tp_IDLE = 0U; |
| 11738 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 11739 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11740 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11741 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11742 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11743 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11744 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11745 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11746 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11747 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11748 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11749 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11750 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11751 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 11752 | chartInstance->c1_is_GEARSHIFT = c1_IN_UPSHIFTING; |
| 11753 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 11754 | &chartInstance->c1_is_GEARSHIFT); |
| 11755 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11756 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11757 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11758 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11759 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11760 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11761 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11762 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11763 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11764 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11765 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11766 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11767 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 22U, chartInstance->c1_sfEvent); |
| 11768 | chartInstance->c1_tp_UPSHIFTING = 1U; |
| 11769 | if (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_START) { |
| 11770 | } else { |
| 11771 | chartInstance->c1_is_UPSHIFTING = c1_IN_UP_START; |
| 11772 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 11773 | &chartInstance->c1_is_UPSHIFTING); |
| 11774 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 11775 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 11776 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 11777 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 11778 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 11779 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 11780 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 11781 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 11782 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 30U, chartInstance->c1_sfEvent); |
| 11783 | chartInstance->c1_tp_UP_START = 1U; |
| 11784 | c1_q0 = c1_Gearshift_getTime(chartInstance); |
| 11785 | c1_q1 = 1; |
| 11786 | c1_covSaturation = false; |
| 11787 | if ((c1_q1 < 0) && (c1_q0 < MIN_int32_T - c1_q1)) { |
| 11788 | c1_covSaturation = true; |
| 11789 | c1_qY = MIN_int32_T; |
| 11790 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 9U, 52U, 1U); |
| 11791 | } else if ((c1_q1 > 0) && (c1_q0 > MAX_int32_T - c1_q1)) { |
| 11792 | c1_covSaturation = true; |
| 11793 | c1_qY = MAX_int32_T; |
| 11794 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 9U, 52U, 1U); |
| 11795 | } else { |
| 11796 | c1_qY = c1_q0 + c1_q1; |
| 11797 | } |
| 11798 | |
| 11799 | CV_SATURATION_EVAL(4, 30, 0, 0, c1_covSaturation); |
| 11800 | chartInstance->c1_ticksCounter = c1_qY; |
| 11801 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11802 | &chartInstance->c1_ticksCounter); |
| 11803 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11804 | } |
| 11805 | |
| 11806 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 61U, chartInstance->c1_sfEvent); |
| 11807 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 62U, |
| 11808 | chartInstance->c1_sfEvent); |
| 11809 | c1_c_temp = _SFD_CCP_CALL(5U, 62U, 0, (chartInstance->c1_is_NEUTRAL_STATE == |
| 11810 | c1_IN_SET_NEUTRAL) != 0U, chartInstance->c1_sfEvent); |
| 11811 | if (c1_c_temp) { |
| 11812 | c1_c_temp = _SFD_CCP_CALL(5U, 62U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 11813 | 62U, 0, (real_T)*chartInstance->c1_clutchCurrVal, 80.0, 0, 3U, |
| 11814 | *chartInstance->c1_clutchCurrVal <= 80) != 0U, chartInstance->c1_sfEvent); |
| 11815 | } |
| 11816 | |
| 11817 | c1_d_out = (CV_TRANSITION_EVAL(62U, (int32_T)c1_c_temp) != 0); |
| 11818 | if (c1_d_out) { |
| 11819 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 62U, chartInstance->c1_sfEvent); |
| 11820 | if (chartInstance->c1_is_UP_START == c1_IN_SettingNeutral) { |
| 11821 | } else { |
| 11822 | chartInstance->c1_is_UP_START = c1_IN_SettingNeutral; |
| 11823 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 63, 9U, (void *) |
| 11824 | &chartInstance->c1_is_UP_START); |
| 11825 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11826 | (chartInstance->c1_is_UP_START == 1)); |
| 11827 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11828 | (chartInstance->c1_is_UP_START == 2)); |
| 11829 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 7); |
| 11830 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 5); |
| 11831 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 63, 9U, 1); |
| 11832 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 32U, chartInstance->c1_sfEvent); |
| 11833 | chartInstance->c1_b_tp_SettingNeutral = 1U; |
| 11834 | c1_Clutch_setValue(chartInstance, 80U); |
| 11835 | } |
| 11836 | } else { |
| 11837 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 63U, chartInstance->c1_sfEvent); |
| 11838 | if (chartInstance->c1_is_UP_START == c1_IN_Default) { |
| 11839 | } else { |
| 11840 | chartInstance->c1_is_UP_START = c1_IN_Default; |
| 11841 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 63, 9U, (void *) |
| 11842 | &chartInstance->c1_is_UP_START); |
| 11843 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 11844 | (chartInstance->c1_is_UP_START == 1)); |
| 11845 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 11846 | (chartInstance->c1_is_UP_START == 2)); |
| 11847 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 8); |
| 11848 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 55, 693U, 6); |
| 11849 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 63, 9U, 2); |
| 11850 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 11851 | chartInstance->c1_c_tp_Default = 1U; |
| 11852 | sf_call_output_fcn_call(chartInstance->S, 2, "Efi_setCut", 0); |
| 11853 | } |
| 11854 | } |
| 11855 | } else { |
| 11856 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 3U, chartInstance->c1_sfEvent); |
| 11857 | c1_c_out = (CV_TRANSITION_EVAL(3U, (int32_T)_SFD_CCP_CALL(5U, 3U, 0, |
| 11858 | (chartInstance->c1_sfEvent == c1_event_GearshiftDown) != 0U, |
| 11859 | chartInstance->c1_sfEvent)) != 0); |
| 11860 | if (c1_c_out) { |
| 11861 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 3U, chartInstance->c1_sfEvent); |
| 11862 | chartInstance->c1_tp_IDLE = 0U; |
| 11863 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 11864 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11865 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11866 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11867 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11868 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11869 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11870 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11871 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11872 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11873 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11874 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11875 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11876 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 11877 | chartInstance->c1_is_GEARSHIFT = c1_IN_DOWNSHIFTING; |
| 11878 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 11879 | &chartInstance->c1_is_GEARSHIFT); |
| 11880 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 11881 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 11882 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 11883 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 11884 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 11885 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 11886 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 11887 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 11888 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 11889 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 11890 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 11891 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 11892 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 11893 | chartInstance->c1_tp_DOWNSHIFTING = 1U; |
| 11894 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_START) { |
| 11895 | } else { |
| 11896 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_DOWN_START; |
| 11897 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 11898 | &chartInstance->c1_is_DOWNSHIFTING); |
| 11899 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 11900 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 11901 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 11902 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 11903 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 11904 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 11905 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 11906 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 11907 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 14U, chartInstance->c1_sfEvent); |
| 11908 | chartInstance->c1_tp_DOWN_START = 1U; |
| 11909 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 11910 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 11911 | &chartInstance->c1_ticksCounter); |
| 11912 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 11913 | } |
| 11914 | |
| 11915 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 68U, chartInstance->c1_sfEvent); |
| 11916 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 67U, |
| 11917 | chartInstance->c1_sfEvent); |
| 11918 | c1_d_temp = _SFD_CCP_CALL(5U, 67U, 0, (chartInstance->c1_is_NEUTRAL_STATE == |
| 11919 | c1_IN_SET_NEUTRAL) != 0U, chartInstance->c1_sfEvent); |
| 11920 | if (c1_d_temp) { |
| 11921 | c1_d_temp = _SFD_CCP_CALL(5U, 67U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 11922 | 67U, 0, (real_T)*chartInstance->c1_clutchCurrVal, 80.0, 0, 3U, |
| 11923 | *chartInstance->c1_clutchCurrVal <= 80) != 0U, |
| 11924 | chartInstance->c1_sfEvent); |
| 11925 | } |
| 11926 | |
| 11927 | c1_e_out = (CV_TRANSITION_EVAL(67U, (int32_T)c1_d_temp) != 0); |
| 11928 | if (c1_e_out) { |
| 11929 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 67U, chartInstance->c1_sfEvent); |
| 11930 | if (chartInstance->c1_is_DOWN_START == c1_b_IN_SettingNeutral) { |
| 11931 | } else { |
| 11932 | chartInstance->c1_is_DOWN_START = c1_b_IN_SettingNeutral; |
| 11933 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 11934 | &chartInstance->c1_is_DOWN_START); |
| 11935 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 11936 | (chartInstance->c1_is_DOWN_START == 1)); |
| 11937 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 11938 | (chartInstance->c1_is_DOWN_START == 2)); |
| 11939 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 11940 | (chartInstance->c1_is_DOWN_START == 3)); |
| 11941 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 11); |
| 11942 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 1); |
| 11943 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 48, 14U, 1); |
| 11944 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 17U, chartInstance->c1_sfEvent); |
| 11945 | chartInstance->c1_c_tp_SettingNeutral = 1U; |
| 11946 | c1_Clutch_setValue(chartInstance, 80U); |
| 11947 | } |
| 11948 | } else { |
| 11949 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 70U, chartInstance->c1_sfEvent); |
| 11950 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 69U, |
| 11951 | chartInstance->c1_sfEvent); |
| 11952 | c1_e_temp = !_SFD_CCP_CALL(5U, 69U, 0, |
| 11953 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_UNSET_NEUTRAL) != 0U, |
| 11954 | chartInstance->c1_sfEvent); |
| 11955 | if (c1_e_temp) { |
| 11956 | c1_e_temp = _SFD_CCP_CALL(5U, 69U, 1, (boolean_T)CV_RELATIONAL_EVAL(5U, |
| 11957 | 69U, 0, (real_T)*chartInstance->c1_clutchCurrVal, 70.0, 0, 3U, |
| 11958 | *chartInstance->c1_clutchCurrVal <= 70) != 0U, |
| 11959 | chartInstance->c1_sfEvent); |
| 11960 | } |
| 11961 | |
| 11962 | c1_f_out = (CV_TRANSITION_EVAL(69U, (int32_T)c1_e_temp) != 0); |
| 11963 | if (c1_f_out) { |
| 11964 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 69U, chartInstance->c1_sfEvent); |
| 11965 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 210U, chartInstance->c1_sfEvent); |
| 11966 | if (chartInstance->c1_is_DOWN_START == c1_IN_ChangeClutch) { |
| 11967 | } else { |
| 11968 | chartInstance->c1_is_DOWN_START = c1_IN_ChangeClutch; |
| 11969 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 11970 | &chartInstance->c1_is_DOWN_START); |
| 11971 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 11972 | (chartInstance->c1_is_DOWN_START == 1)); |
| 11973 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 11974 | (chartInstance->c1_is_DOWN_START == 2)); |
| 11975 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 11976 | (chartInstance->c1_is_DOWN_START == 3)); |
| 11977 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 16); |
| 11978 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 6); |
| 11979 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 48, 14U, 2); |
| 11980 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 11981 | chartInstance->c1_tp_ChangeClutch = 1U; |
| 11982 | c1_Clutch_setValue(chartInstance, 70U); |
| 11983 | } |
| 11984 | } else { |
| 11985 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 71U, chartInstance->c1_sfEvent); |
| 11986 | chartInstance->c1_is_DOWN_START = c1_b_IN_Default; |
| 11987 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 11988 | &chartInstance->c1_is_DOWN_START); |
| 11989 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 11990 | (chartInstance->c1_is_DOWN_START == 1)); |
| 11991 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 11992 | (chartInstance->c1_is_DOWN_START == 2)); |
| 11993 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 11994 | (chartInstance->c1_is_DOWN_START == 3)); |
| 11995 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 17); |
| 11996 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 7); |
| 11997 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 48, 14U, 3); |
| 11998 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 16U, chartInstance->c1_sfEvent); |
| 11999 | chartInstance->c1_d_tp_Default = 1U; |
| 12000 | } |
| 12001 | } |
| 12002 | } else { |
| 12003 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 20U, |
| 12004 | chartInstance->c1_sfEvent); |
| 12005 | } |
| 12006 | } |
| 12007 | |
| 12008 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 20U, chartInstance->c1_sfEvent); |
| 12009 | } |
| 12010 | |
| 12011 | static void c1_DOWNSHIFTING(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 12012 | { |
| 12013 | boolean_T c1_b_out; |
| 12014 | boolean_T c1_c_out; |
| 12015 | boolean_T c1_d_out; |
| 12016 | int32_T c1_q0; |
| 12017 | int32_T c1_b_q0; |
| 12018 | int32_T c1_c_q0; |
| 12019 | int32_T c1_q1; |
| 12020 | int32_T c1_b_q1; |
| 12021 | int32_T c1_c_q1; |
| 12022 | boolean_T c1_covSaturation; |
| 12023 | boolean_T c1_b_covSaturation; |
| 12024 | boolean_T c1_c_covSaturation; |
| 12025 | int32_T c1_qY; |
| 12026 | int32_T c1_b_qY; |
| 12027 | int32_T c1_c_qY; |
| 12028 | boolean_T c1_e_out; |
| 12029 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12030 | switch (chartInstance->c1_is_DOWNSHIFTING) { |
| 12031 | case c1_IN_DOWN_BRAKE: |
| 12032 | CV_STATE_EVAL(8, 0, c1_IN_DOWN_BRAKE); |
| 12033 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 12U, |
| 12034 | chartInstance->c1_sfEvent); |
| 12035 | c1_b_out = (CV_TRANSITION_EVAL(12U, (int32_T)_SFD_CCP_CALL(5U, 12U, 0, |
| 12036 | (boolean_T)CV_RELATIONAL_EVAL(5U, 12U, 0, (real_T) |
| 12037 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 12038 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12039 | if (c1_b_out) { |
| 12040 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 12U, chartInstance->c1_sfEvent); |
| 12041 | c1_exit_internal_DOWN_BRAKE(chartInstance); |
| 12042 | chartInstance->c1_tp_DOWN_BRAKE = 0U; |
| 12043 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 12044 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12045 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12046 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12047 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12048 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12049 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12050 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12051 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12052 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 43, 17U, 0); |
| 12053 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 43, 17U, (void *) |
| 12054 | &chartInstance->c1_is_DOWN_BRAKE); |
| 12055 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 12056 | chartInstance->c1_tp_DOWNSHIFTING = 0U; |
| 12057 | chartInstance->c1_is_GEARSHIFT = c1_IN_NO_ACTIVE_CHILD; |
| 12058 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 12059 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 12060 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 12061 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 12062 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 12063 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 12064 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 12065 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 12066 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 12067 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 12068 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 12069 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 12070 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 0); |
| 12071 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 12072 | &chartInstance->c1_is_DOWNSHIFTING); |
| 12073 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 8U, chartInstance->c1_sfEvent); |
| 12074 | if (chartInstance->c1_is_GEARSHIFT == c1_IN_DOWN_END) { |
| 12075 | } else { |
| 12076 | chartInstance->c1_is_GEARSHIFT = c1_IN_DOWN_END; |
| 12077 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 12078 | &chartInstance->c1_is_GEARSHIFT); |
| 12079 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 12080 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 12081 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 12082 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 12083 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 12084 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 12085 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 12086 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 12087 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 12088 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 12089 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 12090 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 12091 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 18); |
| 12092 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 18U, chartInstance->c1_sfEvent); |
| 12093 | chartInstance->c1_tp_DOWN_END = 1U; |
| 12094 | sf_call_output_fcn_call(chartInstance->S, 10, "Gearshift_free", 0); |
| 12095 | } |
| 12096 | } else { |
| 12097 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 9U, |
| 12098 | chartInstance->c1_sfEvent); |
| 12099 | c1_q0 = chartInstance->c1_ticksCounter; |
| 12100 | c1_q1 = 1; |
| 12101 | c1_covSaturation = false; |
| 12102 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 12103 | c1_covSaturation = true; |
| 12104 | c1_qY = MAX_int32_T; |
| 12105 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 17U, 91U, 1U); |
| 12106 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 12107 | c1_covSaturation = true; |
| 12108 | c1_qY = MIN_int32_T; |
| 12109 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 17U, 91U, 1U); |
| 12110 | } else { |
| 12111 | c1_qY = c1_q0 - c1_q1; |
| 12112 | } |
| 12113 | |
| 12114 | CV_SATURATION_EVAL(4, 9, 0, 0, c1_covSaturation); |
| 12115 | chartInstance->c1_ticksCounter = c1_qY; |
| 12116 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12117 | &chartInstance->c1_ticksCounter); |
| 12118 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12119 | switch (chartInstance->c1_is_DOWN_BRAKE) { |
| 12120 | case c1_IN_ChangeClutch: |
| 12121 | CV_STATE_EVAL(9, 0, c1_IN_ChangeClutch); |
| 12122 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 10U, |
| 12123 | chartInstance->c1_sfEvent); |
| 12124 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 10U, chartInstance->c1_sfEvent); |
| 12125 | break; |
| 12126 | |
| 12127 | case c1_b_IN_Default: |
| 12128 | CV_STATE_EVAL(9, 0, c1_b_IN_Default); |
| 12129 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 11U, |
| 12130 | chartInstance->c1_sfEvent); |
| 12131 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 11U, chartInstance->c1_sfEvent); |
| 12132 | break; |
| 12133 | |
| 12134 | default: |
| 12135 | CV_STATE_EVAL(9, 0, 0); |
| 12136 | |
| 12137 | /* Unreachable state, for coverage only */ |
| 12138 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_NO_ACTIVE_CHILD; |
| 12139 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12140 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12141 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12142 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12143 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 12144 | break; |
| 12145 | } |
| 12146 | } |
| 12147 | |
| 12148 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 9U, chartInstance->c1_sfEvent); |
| 12149 | if (chartInstance->c1_is_GEARSHIFT != c1_IN_DOWNSHIFTING) { |
| 12150 | } else { |
| 12151 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12152 | } |
| 12153 | break; |
| 12154 | |
| 12155 | case c1_IN_DOWN_PUSH: |
| 12156 | CV_STATE_EVAL(8, 0, c1_IN_DOWN_PUSH); |
| 12157 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 10U, |
| 12158 | chartInstance->c1_sfEvent); |
| 12159 | c1_c_out = (CV_TRANSITION_EVAL(10U, (int32_T)_SFD_CCP_CALL(5U, 10U, 0, |
| 12160 | (boolean_T)CV_RELATIONAL_EVAL(5U, 10U, 0, (real_T) |
| 12161 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 12162 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12163 | if (c1_c_out) { |
| 12164 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 12165 | chartInstance->c1_tp_DOWN_PUSH = 0U; |
| 12166 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 12167 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12168 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12169 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12170 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12171 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12172 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12173 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12174 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12175 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 12U, chartInstance->c1_sfEvent); |
| 12176 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_REBOUND) { |
| 12177 | } else { |
| 12178 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_DOWN_REBOUND; |
| 12179 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 12180 | &chartInstance->c1_is_DOWNSHIFTING); |
| 12181 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12182 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12183 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12184 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12185 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12186 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12187 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12188 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12189 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 15); |
| 12190 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 5); |
| 12191 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 13U, chartInstance->c1_sfEvent); |
| 12192 | chartInstance->c1_tp_DOWN_REBOUND = 1U; |
| 12193 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 12194 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12195 | &chartInstance->c1_ticksCounter); |
| 12196 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12197 | sf_call_output_fcn_call(chartInstance->S, 6, "Gearshift_rebound", 0); |
| 12198 | sf_call_output_fcn_call(chartInstance->S, 3, "Efi_unsetCut", 0); |
| 12199 | } |
| 12200 | } else { |
| 12201 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 12U, |
| 12202 | chartInstance->c1_sfEvent); |
| 12203 | c1_b_q0 = chartInstance->c1_ticksCounter; |
| 12204 | c1_b_q1 = 1; |
| 12205 | c1_b_covSaturation = false; |
| 12206 | if ((c1_b_q1 < 0) && (c1_b_q0 > c1_b_q1 + MAX_int32_T)) { |
| 12207 | c1_b_covSaturation = true; |
| 12208 | c1_b_qY = MAX_int32_T; |
| 12209 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 15U, 119U, 1U); |
| 12210 | } else if ((c1_b_q1 > 0) && (c1_b_q0 < c1_b_q1 + MIN_int32_T)) { |
| 12211 | c1_b_covSaturation = true; |
| 12212 | c1_b_qY = MIN_int32_T; |
| 12213 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 15U, 119U, 1U); |
| 12214 | } else { |
| 12215 | c1_b_qY = c1_b_q0 - c1_b_q1; |
| 12216 | } |
| 12217 | |
| 12218 | CV_SATURATION_EVAL(4, 12, 0, 0, c1_b_covSaturation); |
| 12219 | chartInstance->c1_ticksCounter = c1_b_qY; |
| 12220 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12221 | &chartInstance->c1_ticksCounter); |
| 12222 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12223 | } |
| 12224 | |
| 12225 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 12U, chartInstance->c1_sfEvent); |
| 12226 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12227 | break; |
| 12228 | |
| 12229 | case c1_IN_DOWN_REBOUND: |
| 12230 | CV_STATE_EVAL(8, 0, c1_IN_DOWN_REBOUND); |
| 12231 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 11U, |
| 12232 | chartInstance->c1_sfEvent); |
| 12233 | c1_d_out = (CV_TRANSITION_EVAL(11U, (int32_T)_SFD_CCP_CALL(5U, 11U, 0, |
| 12234 | (boolean_T)CV_RELATIONAL_EVAL(5U, 11U, 0, (real_T) |
| 12235 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter |
| 12236 | == 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12237 | if (c1_d_out) { |
| 12238 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 11U, chartInstance->c1_sfEvent); |
| 12239 | chartInstance->c1_tp_DOWN_REBOUND = 0U; |
| 12240 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 12241 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12242 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12243 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12244 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12245 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12246 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12247 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12248 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12249 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 13U, chartInstance->c1_sfEvent); |
| 12250 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_BRAKE) { |
| 12251 | } else { |
| 12252 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_DOWN_BRAKE; |
| 12253 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 12254 | &chartInstance->c1_is_DOWNSHIFTING); |
| 12255 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12256 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12257 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12258 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12259 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12260 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12261 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12262 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12263 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 12264 | chartInstance->c1_tp_DOWN_BRAKE = 1U; |
| 12265 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 12266 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12267 | &chartInstance->c1_ticksCounter); |
| 12268 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12269 | } |
| 12270 | |
| 12271 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 73U, chartInstance->c1_sfEvent); |
| 12272 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 72U, |
| 12273 | chartInstance->c1_sfEvent); |
| 12274 | c1_e_out = (CV_TRANSITION_EVAL(72U, (int32_T)_SFD_CCP_CALL(5U, 72U, 0, |
| 12275 | (boolean_T)CV_RELATIONAL_EVAL(5U, 72U, 0, (real_T) |
| 12276 | *chartInstance->c1_clutchCurrVal, 81.0, 0, 2U, |
| 12277 | *chartInstance->c1_clutchCurrVal < 81) != 0U, chartInstance->c1_sfEvent)) |
| 12278 | != 0); |
| 12279 | if (c1_e_out) { |
| 12280 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 72U, chartInstance->c1_sfEvent); |
| 12281 | if (chartInstance->c1_is_DOWN_BRAKE == c1_IN_ChangeClutch) { |
| 12282 | } else { |
| 12283 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_ChangeClutch; |
| 12284 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 43, 17U, (void *) |
| 12285 | &chartInstance->c1_is_DOWN_BRAKE); |
| 12286 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12287 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12288 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12289 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12290 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 16); |
| 12291 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 6); |
| 12292 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 43, 17U, 1); |
| 12293 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 12294 | chartInstance->c1_b_tp_ChangeClutch = 1U; |
| 12295 | c1_Clutch_setValue(chartInstance, 0U); |
| 12296 | sf_call_output_fcn_call(chartInstance->S, 9, "Gearshift_brake", 0); |
| 12297 | } |
| 12298 | } else { |
| 12299 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 74U, chartInstance->c1_sfEvent); |
| 12300 | if (chartInstance->c1_is_DOWN_BRAKE == c1_b_IN_Default) { |
| 12301 | } else { |
| 12302 | chartInstance->c1_is_DOWN_BRAKE = c1_b_IN_Default; |
| 12303 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 43, 17U, (void *) |
| 12304 | &chartInstance->c1_is_DOWN_BRAKE); |
| 12305 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12306 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12307 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12308 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12309 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 17); |
| 12310 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 7); |
| 12311 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 43, 17U, 2); |
| 12312 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 11U, chartInstance->c1_sfEvent); |
| 12313 | chartInstance->c1_e_tp_Default = 1U; |
| 12314 | sf_call_output_fcn_call(chartInstance->S, 9, "Gearshift_brake", 0); |
| 12315 | } |
| 12316 | } |
| 12317 | } else { |
| 12318 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 13U, |
| 12319 | chartInstance->c1_sfEvent); |
| 12320 | c1_c_q0 = chartInstance->c1_ticksCounter; |
| 12321 | c1_c_q1 = 1; |
| 12322 | c1_c_covSaturation = false; |
| 12323 | if ((c1_c_q1 < 0) && (c1_c_q0 > c1_c_q1 + MAX_int32_T)) { |
| 12324 | c1_c_covSaturation = true; |
| 12325 | c1_c_qY = MAX_int32_T; |
| 12326 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 16U, 141U, 1U); |
| 12327 | } else if ((c1_c_q1 > 0) && (c1_c_q0 < c1_c_q1 + MIN_int32_T)) { |
| 12328 | c1_c_covSaturation = true; |
| 12329 | c1_c_qY = MIN_int32_T; |
| 12330 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 16U, 141U, 1U); |
| 12331 | } else { |
| 12332 | c1_c_qY = c1_c_q0 - c1_c_q1; |
| 12333 | } |
| 12334 | |
| 12335 | CV_SATURATION_EVAL(4, 13, 0, 0, c1_c_covSaturation); |
| 12336 | chartInstance->c1_ticksCounter = c1_c_qY; |
| 12337 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12338 | &chartInstance->c1_ticksCounter); |
| 12339 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12340 | } |
| 12341 | |
| 12342 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 13U, chartInstance->c1_sfEvent); |
| 12343 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12344 | break; |
| 12345 | |
| 12346 | case c1_IN_DOWN_START: |
| 12347 | CV_STATE_EVAL(8, 0, c1_IN_DOWN_START); |
| 12348 | c1_DOWN_START(chartInstance); |
| 12349 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12350 | break; |
| 12351 | |
| 12352 | default: |
| 12353 | CV_STATE_EVAL(8, 0, 0); |
| 12354 | |
| 12355 | /* Unreachable state, for coverage only */ |
| 12356 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 12357 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12358 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12359 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12360 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12361 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12362 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12363 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12364 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12365 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 12366 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 8U, chartInstance->c1_sfEvent); |
| 12367 | break; |
| 12368 | } |
| 12369 | } |
| 12370 | |
| 12371 | static void c1_DOWN_START(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 12372 | { |
| 12373 | boolean_T c1_b_out; |
| 12374 | int32_T c1_q0; |
| 12375 | int32_T c1_q1; |
| 12376 | boolean_T c1_covSaturation; |
| 12377 | int32_T c1_qY; |
| 12378 | boolean_T c1_c_out; |
| 12379 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 9U, chartInstance->c1_sfEvent); |
| 12380 | c1_b_out = (CV_TRANSITION_EVAL(9U, (int32_T)_SFD_CCP_CALL(5U, 9U, 0, |
| 12381 | (boolean_T)CV_RELATIONAL_EVAL(5U, 9U, 0, (real_T) |
| 12382 | chartInstance->c1_ticksCounter, 1.0, 0, 0U, chartInstance->c1_ticksCounter == |
| 12383 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12384 | if (c1_b_out) { |
| 12385 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 9U, chartInstance->c1_sfEvent); |
| 12386 | c1_exit_internal_DOWN_START(chartInstance); |
| 12387 | chartInstance->c1_tp_DOWN_START = 0U; |
| 12388 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_NO_ACTIVE_CHILD; |
| 12389 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12390 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12391 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12392 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12393 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12394 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12395 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12396 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12397 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 48, 14U, 0); |
| 12398 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 12399 | &chartInstance->c1_is_DOWN_START); |
| 12400 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 14U, chartInstance->c1_sfEvent); |
| 12401 | if (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_PUSH) { |
| 12402 | } else { |
| 12403 | chartInstance->c1_is_DOWNSHIFTING = c1_IN_DOWN_PUSH; |
| 12404 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 12405 | &chartInstance->c1_is_DOWNSHIFTING); |
| 12406 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 12407 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 12408 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 12409 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 12410 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 12411 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 12412 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 12413 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 12414 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 41, 1U, 14); |
| 12415 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 42, 697U, 4); |
| 12416 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 12U, chartInstance->c1_sfEvent); |
| 12417 | chartInstance->c1_tp_DOWN_PUSH = 1U; |
| 12418 | chartInstance->c1_ticksCounter = c1_Gearshift_getTime(chartInstance); |
| 12419 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12420 | &chartInstance->c1_ticksCounter); |
| 12421 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12422 | sf_call_output_fcn_call(chartInstance->S, 8, "Gearshift_down_push", 0); |
| 12423 | } |
| 12424 | |
| 12425 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 205U, chartInstance->c1_sfEvent); |
| 12426 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 206U, |
| 12427 | chartInstance->c1_sfEvent); |
| 12428 | c1_c_out = (CV_TRANSITION_EVAL(206U, (int32_T)_SFD_CCP_CALL(5U, 206U, 0, |
| 12429 | (boolean_T)CV_RELATIONAL_EVAL(5U, 206U, 0, (real_T) |
| 12430 | *chartInstance->c1_currTps, 20.0, 0, 5U, *chartInstance->c1_currTps >= 20) |
| 12431 | != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12432 | if (c1_c_out) { |
| 12433 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 206U, chartInstance->c1_sfEvent); |
| 12434 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 207U, chartInstance->c1_sfEvent); |
| 12435 | sf_call_output_fcn_call(chartInstance->S, 2, "Efi_setCut", 0); |
| 12436 | } else { |
| 12437 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 208U, chartInstance->c1_sfEvent); |
| 12438 | } |
| 12439 | } else { |
| 12440 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 14U, chartInstance->c1_sfEvent); |
| 12441 | c1_q0 = chartInstance->c1_ticksCounter; |
| 12442 | c1_q1 = 1; |
| 12443 | c1_covSaturation = false; |
| 12444 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 12445 | c1_covSaturation = true; |
| 12446 | c1_qY = MAX_int32_T; |
| 12447 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 14U, 92U, 1U); |
| 12448 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 12449 | c1_covSaturation = true; |
| 12450 | c1_qY = MIN_int32_T; |
| 12451 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 14U, 92U, 1U); |
| 12452 | } else { |
| 12453 | c1_qY = c1_q0 - c1_q1; |
| 12454 | } |
| 12455 | |
| 12456 | CV_SATURATION_EVAL(4, 14, 0, 0, c1_covSaturation); |
| 12457 | chartInstance->c1_ticksCounter = c1_qY; |
| 12458 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 12459 | &chartInstance->c1_ticksCounter); |
| 12460 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_ticksCounter, 16U); |
| 12461 | switch (chartInstance->c1_is_DOWN_START) { |
| 12462 | case c1_IN_ChangeClutch: |
| 12463 | CV_STATE_EVAL(14, 0, c1_IN_ChangeClutch); |
| 12464 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 15U, |
| 12465 | chartInstance->c1_sfEvent); |
| 12466 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 15U, chartInstance->c1_sfEvent); |
| 12467 | break; |
| 12468 | |
| 12469 | case c1_b_IN_Default: |
| 12470 | CV_STATE_EVAL(14, 0, c1_b_IN_Default); |
| 12471 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 16U, |
| 12472 | chartInstance->c1_sfEvent); |
| 12473 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 16U, chartInstance->c1_sfEvent); |
| 12474 | break; |
| 12475 | |
| 12476 | case c1_b_IN_SettingNeutral: |
| 12477 | CV_STATE_EVAL(14, 0, c1_b_IN_SettingNeutral); |
| 12478 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 17U, |
| 12479 | chartInstance->c1_sfEvent); |
| 12480 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 17U, chartInstance->c1_sfEvent); |
| 12481 | break; |
| 12482 | |
| 12483 | default: |
| 12484 | CV_STATE_EVAL(14, 0, 0); |
| 12485 | |
| 12486 | /* Unreachable state, for coverage only */ |
| 12487 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 12488 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 12489 | (chartInstance->c1_is_DOWN_START == 1)); |
| 12490 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 12491 | (chartInstance->c1_is_DOWN_START == 2)); |
| 12492 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 12493 | (chartInstance->c1_is_DOWN_START == 3)); |
| 12494 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 12495 | break; |
| 12496 | } |
| 12497 | } |
| 12498 | |
| 12499 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 14U, chartInstance->c1_sfEvent); |
| 12500 | } |
| 12501 | |
| 12502 | static void c1_exit_internal_DOWN_START(SFc1_GCU_Model_genCodeInstanceStruct |
| 12503 | *chartInstance) |
| 12504 | { |
| 12505 | switch (chartInstance->c1_is_DOWN_START) { |
| 12506 | case c1_IN_ChangeClutch: |
| 12507 | CV_STATE_EVAL(14, 1, c1_IN_ChangeClutch); |
| 12508 | chartInstance->c1_tp_ChangeClutch = 0U; |
| 12509 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 12510 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 12511 | (chartInstance->c1_is_DOWN_START == 1)); |
| 12512 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 12513 | (chartInstance->c1_is_DOWN_START == 2)); |
| 12514 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 12515 | (chartInstance->c1_is_DOWN_START == 3)); |
| 12516 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 12517 | break; |
| 12518 | |
| 12519 | case c1_b_IN_Default: |
| 12520 | CV_STATE_EVAL(14, 1, c1_b_IN_Default); |
| 12521 | chartInstance->c1_d_tp_Default = 0U; |
| 12522 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 12523 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 12524 | (chartInstance->c1_is_DOWN_START == 1)); |
| 12525 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 12526 | (chartInstance->c1_is_DOWN_START == 2)); |
| 12527 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 12528 | (chartInstance->c1_is_DOWN_START == 3)); |
| 12529 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 16U, chartInstance->c1_sfEvent); |
| 12530 | break; |
| 12531 | |
| 12532 | case c1_b_IN_SettingNeutral: |
| 12533 | CV_STATE_EVAL(14, 1, c1_b_IN_SettingNeutral); |
| 12534 | chartInstance->c1_c_tp_SettingNeutral = 0U; |
| 12535 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 12536 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 12537 | (chartInstance->c1_is_DOWN_START == 1)); |
| 12538 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 12539 | (chartInstance->c1_is_DOWN_START == 2)); |
| 12540 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 12541 | (chartInstance->c1_is_DOWN_START == 3)); |
| 12542 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 17U, chartInstance->c1_sfEvent); |
| 12543 | break; |
| 12544 | |
| 12545 | default: |
| 12546 | CV_STATE_EVAL(14, 1, 0); |
| 12547 | chartInstance->c1_is_DOWN_START = c1_IN_NO_ACTIVE_CHILD; |
| 12548 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 12549 | (chartInstance->c1_is_DOWN_START == 1)); |
| 12550 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 12551 | (chartInstance->c1_is_DOWN_START == 2)); |
| 12552 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 12553 | (chartInstance->c1_is_DOWN_START == 3)); |
| 12554 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 15U, chartInstance->c1_sfEvent); |
| 12555 | break; |
| 12556 | } |
| 12557 | } |
| 12558 | |
| 12559 | static void c1_exit_internal_DOWN_BRAKE(SFc1_GCU_Model_genCodeInstanceStruct |
| 12560 | *chartInstance) |
| 12561 | { |
| 12562 | switch (chartInstance->c1_is_DOWN_BRAKE) { |
| 12563 | case c1_IN_ChangeClutch: |
| 12564 | CV_STATE_EVAL(9, 1, c1_IN_ChangeClutch); |
| 12565 | chartInstance->c1_b_tp_ChangeClutch = 0U; |
| 12566 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_NO_ACTIVE_CHILD; |
| 12567 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12568 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12569 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12570 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12571 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 12572 | break; |
| 12573 | |
| 12574 | case c1_b_IN_Default: |
| 12575 | CV_STATE_EVAL(9, 1, c1_b_IN_Default); |
| 12576 | chartInstance->c1_e_tp_Default = 0U; |
| 12577 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_NO_ACTIVE_CHILD; |
| 12578 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12579 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12580 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12581 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12582 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 11U, chartInstance->c1_sfEvent); |
| 12583 | break; |
| 12584 | |
| 12585 | default: |
| 12586 | CV_STATE_EVAL(9, 1, 0); |
| 12587 | chartInstance->c1_is_DOWN_BRAKE = c1_IN_NO_ACTIVE_CHILD; |
| 12588 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 12589 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 12590 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 12591 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 12592 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 10U, chartInstance->c1_sfEvent); |
| 12593 | break; |
| 12594 | } |
| 12595 | } |
| 12596 | |
| 12597 | static void c1_START_ENGINE(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 12598 | { |
| 12599 | boolean_T c1_b_out; |
| 12600 | boolean_T c1_c_out; |
| 12601 | boolean_T c1_d_out; |
| 12602 | boolean_T c1_e_out; |
| 12603 | int32_T c1_i64; |
| 12604 | boolean_T c1_f_out; |
| 12605 | boolean_T c1_covSaturation; |
| 12606 | boolean_T guard1 = false; |
| 12607 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 87U, chartInstance->c1_sfEvent); |
| 12608 | switch (chartInstance->c1_is_START_ENGINE) { |
| 12609 | case c1_c_IN_START: |
| 12610 | CV_STATE_EVAL(87, 0, c1_c_IN_START); |
| 12611 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 94U, |
| 12612 | chartInstance->c1_sfEvent); |
| 12613 | c1_b_out = (CV_TRANSITION_EVAL(94U, (int32_T)_SFD_CCP_CALL(5U, 94U, 0, |
| 12614 | (boolean_T)CV_RELATIONAL_EVAL(5U, 94U, 0, (real_T) |
| 12615 | chartInstance->c1_startCounter, 0.0, 0, 3U, chartInstance->c1_startCounter |
| 12616 | <= 0) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 12617 | if (c1_b_out) { |
| 12618 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 94U, chartInstance->c1_sfEvent); |
| 12619 | chartInstance->c1_d_tp_START = 0U; |
| 12620 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 12621 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12622 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12623 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12624 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12625 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12626 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12627 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12628 | if (chartInstance->c1_is_START_ENGINE == c1_IN_STOP) { |
| 12629 | } else { |
| 12630 | chartInstance->c1_is_START_ENGINE = c1_IN_STOP; |
| 12631 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 12632 | &chartInstance->c1_is_START_ENGINE); |
| 12633 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12634 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12635 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12636 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12637 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12638 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12639 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 3); |
| 12640 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 89U, chartInstance->c1_sfEvent); |
| 12641 | chartInstance->c1_tp_STOP = 1U; |
| 12642 | sf_call_output_fcn_call(chartInstance->S, 12, "EngineControl_stop", 0); |
| 12643 | } |
| 12644 | } else { |
| 12645 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 146U, |
| 12646 | chartInstance->c1_sfEvent); |
| 12647 | c1_e_out = (CV_TRANSITION_EVAL(146U, (int32_T)_SFD_CCP_CALL(5U, 146U, 0, |
| 12648 | (boolean_T)CV_RELATIONAL_EVAL(5U, 146U, 0, (real_T) |
| 12649 | *chartInstance->c1_startEngCom, (real_T)chartInstance->c1_lastCom, 0, 1U, |
| 12650 | *chartInstance->c1_startEngCom != chartInstance->c1_lastCom) != 0U, |
| 12651 | chartInstance->c1_sfEvent)) != 0); |
| 12652 | guard1 = false; |
| 12653 | if (c1_e_out) { |
| 12654 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 146U, chartInstance->c1_sfEvent); |
| 12655 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 93U, |
| 12656 | chartInstance->c1_sfEvent); |
| 12657 | c1_f_out = (CV_TRANSITION_EVAL(93U, (int32_T)_SFD_CCP_CALL(5U, 93U, 0, |
| 12658 | (boolean_T)CV_RELATIONAL_EVAL(5U, 93U, 1, (real_T) |
| 12659 | *chartInstance->c1_startEngCom, (real_T)chartInstance->c1_lastCom, 0, |
| 12660 | 1U, *chartInstance->c1_startEngCom != chartInstance->c1_lastCom) != 0U, |
| 12661 | chartInstance->c1_sfEvent)) != 0); |
| 12662 | if (c1_f_out) { |
| 12663 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 93U, chartInstance->c1_sfEvent); |
| 12664 | chartInstance->c1_d_tp_START = 0U; |
| 12665 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 12666 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12667 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12668 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12669 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12670 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12671 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12672 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12673 | if (chartInstance->c1_is_START_ENGINE == c1_c_IN_START) { |
| 12674 | } else { |
| 12675 | chartInstance->c1_is_START_ENGINE = c1_c_IN_START; |
| 12676 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 12677 | &chartInstance->c1_is_START_ENGINE); |
| 12678 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12679 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12680 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12681 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12682 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12683 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12684 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 2); |
| 12685 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12686 | chartInstance->c1_d_tp_START = 1U; |
| 12687 | sf_call_output_fcn_call(chartInstance->S, 11, "EngineControl_start", |
| 12688 | 0); |
| 12689 | chartInstance->c1_lastCom = *chartInstance->c1_startEngCom; |
| 12690 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 85, 484U, (void *) |
| 12691 | &chartInstance->c1_lastCom); |
| 12692 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastCom, 18U); |
| 12693 | chartInstance->c1_startCounter = 100U; |
| 12694 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 12695 | &chartInstance->c1_startCounter); |
| 12696 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 12697 | } |
| 12698 | } else { |
| 12699 | guard1 = true; |
| 12700 | } |
| 12701 | } else { |
| 12702 | guard1 = true; |
| 12703 | } |
| 12704 | |
| 12705 | if (guard1) { |
| 12706 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 88U, |
| 12707 | chartInstance->c1_sfEvent); |
| 12708 | c1_i64 = c1__s32_minus__(chartInstance, (int32_T) |
| 12709 | chartInstance->c1_startCounter, 1, 482U, 120, 1); |
| 12710 | c1_covSaturation = false; |
| 12711 | if (c1_i64 < 0) { |
| 12712 | c1_covSaturation = true; |
| 12713 | c1_i64 = 0; |
| 12714 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 482U, 120U, 1U); |
| 12715 | } else { |
| 12716 | if (c1_i64 > 255) { |
| 12717 | c1_i64 = 255; |
| 12718 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 482U, 120U, 1U); |
| 12719 | } |
| 12720 | |
| 12721 | CV_SATURATION_EVAL(4, 88, 0, 0, c1_covSaturation); |
| 12722 | } |
| 12723 | |
| 12724 | chartInstance->c1_startCounter = (uint8_T)c1_i64; |
| 12725 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 12726 | &chartInstance->c1_startCounter); |
| 12727 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 12728 | } |
| 12729 | } |
| 12730 | |
| 12731 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 88U, chartInstance->c1_sfEvent); |
| 12732 | break; |
| 12733 | |
| 12734 | case c1_IN_STOP: |
| 12735 | CV_STATE_EVAL(87, 0, c1_IN_STOP); |
| 12736 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 97U, chartInstance->c1_sfEvent); |
| 12737 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 93U, |
| 12738 | chartInstance->c1_sfEvent); |
| 12739 | c1_c_out = (CV_TRANSITION_EVAL(93U, (int32_T)_SFD_CCP_CALL(5U, 93U, 0, |
| 12740 | (boolean_T)CV_RELATIONAL_EVAL(5U, 93U, 2, (real_T) |
| 12741 | *chartInstance->c1_startEngCom, (real_T)chartInstance->c1_lastCom, 0, 1U, * |
| 12742 | chartInstance->c1_startEngCom != chartInstance->c1_lastCom) != 0U, |
| 12743 | chartInstance->c1_sfEvent)) != 0); |
| 12744 | if (c1_c_out) { |
| 12745 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 93U, chartInstance->c1_sfEvent); |
| 12746 | chartInstance->c1_tp_STOP = 0U; |
| 12747 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 12748 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12749 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12750 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12751 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12752 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12753 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12754 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 89U, chartInstance->c1_sfEvent); |
| 12755 | if (chartInstance->c1_is_START_ENGINE == c1_c_IN_START) { |
| 12756 | } else { |
| 12757 | chartInstance->c1_is_START_ENGINE = c1_c_IN_START; |
| 12758 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 12759 | &chartInstance->c1_is_START_ENGINE); |
| 12760 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12761 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12762 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12763 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12764 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12765 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12766 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 2); |
| 12767 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12768 | chartInstance->c1_d_tp_START = 1U; |
| 12769 | sf_call_output_fcn_call(chartInstance->S, 11, "EngineControl_start", 0); |
| 12770 | chartInstance->c1_lastCom = *chartInstance->c1_startEngCom; |
| 12771 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 85, 484U, (void *) |
| 12772 | &chartInstance->c1_lastCom); |
| 12773 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastCom, 18U); |
| 12774 | chartInstance->c1_startCounter = 100U; |
| 12775 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 12776 | &chartInstance->c1_startCounter); |
| 12777 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 12778 | } |
| 12779 | } else { |
| 12780 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 89U, |
| 12781 | chartInstance->c1_sfEvent); |
| 12782 | } |
| 12783 | |
| 12784 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 89U, chartInstance->c1_sfEvent); |
| 12785 | break; |
| 12786 | |
| 12787 | case c1_b_IN_WAIT: |
| 12788 | CV_STATE_EVAL(87, 0, c1_b_IN_WAIT); |
| 12789 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 96U, chartInstance->c1_sfEvent); |
| 12790 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 93U, |
| 12791 | chartInstance->c1_sfEvent); |
| 12792 | c1_d_out = (CV_TRANSITION_EVAL(93U, (int32_T)_SFD_CCP_CALL(5U, 93U, 0, |
| 12793 | (boolean_T)CV_RELATIONAL_EVAL(5U, 93U, 0, (real_T) |
| 12794 | *chartInstance->c1_startEngCom, (real_T)chartInstance->c1_lastCom, 0, 1U, * |
| 12795 | chartInstance->c1_startEngCom != chartInstance->c1_lastCom) != 0U, |
| 12796 | chartInstance->c1_sfEvent)) != 0); |
| 12797 | if (c1_d_out) { |
| 12798 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 93U, chartInstance->c1_sfEvent); |
| 12799 | chartInstance->c1_b_tp_WAIT = 0U; |
| 12800 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 12801 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12802 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12803 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12804 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12805 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12806 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12807 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 90U, chartInstance->c1_sfEvent); |
| 12808 | if (chartInstance->c1_is_START_ENGINE == c1_c_IN_START) { |
| 12809 | } else { |
| 12810 | chartInstance->c1_is_START_ENGINE = c1_c_IN_START; |
| 12811 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 12812 | &chartInstance->c1_is_START_ENGINE); |
| 12813 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12814 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12815 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12816 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12817 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12818 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12819 | c1_c_sdiStreamingWrapperFcn(chartInstance, 2, 67, 479U, 2); |
| 12820 | _SFD_CS_CALL(STATE_ACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12821 | chartInstance->c1_d_tp_START = 1U; |
| 12822 | sf_call_output_fcn_call(chartInstance->S, 11, "EngineControl_start", 0); |
| 12823 | chartInstance->c1_lastCom = *chartInstance->c1_startEngCom; |
| 12824 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 85, 484U, (void *) |
| 12825 | &chartInstance->c1_lastCom); |
| 12826 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastCom, 18U); |
| 12827 | chartInstance->c1_startCounter = 100U; |
| 12828 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 12829 | &chartInstance->c1_startCounter); |
| 12830 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_startCounter, 19U); |
| 12831 | } |
| 12832 | } else { |
| 12833 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 90U, |
| 12834 | chartInstance->c1_sfEvent); |
| 12835 | } |
| 12836 | |
| 12837 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 90U, chartInstance->c1_sfEvent); |
| 12838 | break; |
| 12839 | |
| 12840 | default: |
| 12841 | CV_STATE_EVAL(87, 0, 0); |
| 12842 | |
| 12843 | /* Unreachable state, for coverage only */ |
| 12844 | chartInstance->c1_is_START_ENGINE = c1_IN_NO_ACTIVE_CHILD; |
| 12845 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 12846 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 12847 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 12848 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 12849 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 12850 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 12851 | _SFD_CS_CALL(STATE_INACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 12852 | break; |
| 12853 | } |
| 12854 | |
| 12855 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 87U, chartInstance->c1_sfEvent); |
| 12856 | } |
| 12857 | |
| 12858 | static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T |
| 12859 | c1_chartNumber, uint32_T c1_instanceNumber) |
| 12860 | { |
| 12861 | (void)(c1_machineNumber); |
| 12862 | (void)(c1_chartNumber); |
| 12863 | (void)(c1_instanceNumber); |
| 12864 | } |
| 12865 | |
| 12866 | const mxArray *sf_c1_GCU_Model_genCode_get_eml_resolved_functions_info(void) |
| 12867 | { |
| 12868 | const mxArray *c1_nameCaptureInfo = NULL; |
| 12869 | c1_nameCaptureInfo = NULL; |
| 12870 | sf_mex_assign(&c1_nameCaptureInfo, sf_mex_create("nameCaptureInfo", NULL, 0, |
| 12871 | 0U, 1U, 0U, 2, 0, 1), false); |
| 12872 | return c1_nameCaptureInfo; |
| 12873 | } |
| 12874 | |
| 12875 | static void c1_checkClutch(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 12876 | { |
| 12877 | boolean_T c1_temp; |
| 12878 | boolean_T c1_b_out; |
| 12879 | boolean_T c1_b_temp; |
| 12880 | boolean_T c1_c_temp; |
| 12881 | boolean_T c1_c_out; |
| 12882 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 77U, chartInstance->c1_sfEvent); |
| 12883 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 12884 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 77U, chartInstance->c1_sfEvent); |
| 12885 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 126U, chartInstance->c1_sfEvent); |
| 12886 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 127U, chartInstance->c1_sfEvent); |
| 12887 | c1_temp = _SFD_CCP_CALL(5U, 127U, 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 127U, 0, |
| 12888 | (real_T)*chartInstance->c1_clutchTarget, (real_T) |
| 12889 | *chartInstance->c1_clutchCurrVal, 0, 1U, *chartInstance->c1_clutchTarget != * |
| 12890 | chartInstance->c1_clutchCurrVal) != 0U, chartInstance->c1_sfEvent); |
| 12891 | if (c1_temp) { |
| 12892 | c1_temp = _SFD_CCP_CALL(5U, 127U, 1, (*chartInstance->c1_antiStallFb == |
| 12893 | ANTISTALL_OFF) != 0U, chartInstance->c1_sfEvent); |
| 12894 | } |
| 12895 | |
| 12896 | c1_b_out = (CV_TRANSITION_EVAL(127U, (int32_T)c1_temp) != 0); |
| 12897 | if (c1_b_out) { |
| 12898 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 127U, chartInstance->c1_sfEvent); |
| 12899 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 129U, chartInstance->c1_sfEvent); |
| 12900 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 130U, |
| 12901 | chartInstance->c1_sfEvent); |
| 12902 | c1_b_temp = !_SFD_CCP_CALL(5U, 130U, 0, (chartInstance->c1_is_GEARSHIFT == |
| 12903 | c1_IN_DOWNSHIFTING) != 0U, chartInstance->c1_sfEvent); |
| 12904 | if (c1_b_temp) { |
| 12905 | c1_b_temp = !_SFD_CCP_CALL(5U, 130U, 1, |
| 12906 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 12907 | chartInstance->c1_sfEvent); |
| 12908 | } |
| 12909 | |
| 12910 | c1_c_temp = c1_b_temp; |
| 12911 | if (!c1_c_temp) { |
| 12912 | c1_c_temp = _SFD_CCP_CALL(5U, 130U, 2, (chartInstance->c1_is_NEUTRAL_STATE |
| 12913 | == c1_IN_UNSET_NEUTRAL) != 0U, chartInstance->c1_sfEvent); |
| 12914 | } |
| 12915 | |
| 12916 | c1_c_out = (CV_TRANSITION_EVAL(130U, (int32_T)c1_c_temp) != 0); |
| 12917 | if (c1_c_out) { |
| 12918 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 130U, chartInstance->c1_sfEvent); |
| 12919 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 132U, chartInstance->c1_sfEvent); |
| 12920 | c1_Clutch_setValue(chartInstance, *chartInstance->c1_clutchTarget); |
| 12921 | } else { |
| 12922 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 131U, chartInstance->c1_sfEvent); |
| 12923 | } |
| 12924 | } else { |
| 12925 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 128U, chartInstance->c1_sfEvent); |
| 12926 | } |
| 12927 | |
| 12928 | _SFD_SYMBOL_SCOPE_POP(); |
| 12929 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 77U, chartInstance->c1_sfEvent); |
| 12930 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 77U, chartInstance->c1_sfEvent); |
| 12931 | } |
| 12932 | |
| 12933 | static void c1_checkShift(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 12934 | { |
| 12935 | boolean_T c1_b_out; |
| 12936 | boolean_T c1_c_out; |
| 12937 | boolean_T c1_d_out; |
| 12938 | int32_T c1_previousEvent; |
| 12939 | boolean_T c1_e_out; |
| 12940 | int32_T c1_b_previousEvent; |
| 12941 | int32_T c1_c_previousEvent; |
| 12942 | boolean_T c1_f_out; |
| 12943 | int32_T c1_d_previousEvent; |
| 12944 | int32_T c1_e_previousEvent; |
| 12945 | int32_T c1_f_previousEvent; |
| 12946 | int32_T c1_g_previousEvent; |
| 12947 | int32_T c1_i65; |
| 12948 | int32_T c1_h_previousEvent; |
| 12949 | int32_T c1_i66; |
| 12950 | int32_T c1_i67; |
| 12951 | boolean_T c1_covSaturation; |
| 12952 | int32_T c1_i68; |
| 12953 | int32_T c1_i69; |
| 12954 | boolean_T c1_b_covSaturation; |
| 12955 | int32_T c1_i70; |
| 12956 | int32_T c1_i71; |
| 12957 | int32_T c1_i72; |
| 12958 | int32_T c1_i73; |
| 12959 | int32_T c1_i74; |
| 12960 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 78U, chartInstance->c1_sfEvent); |
| 12961 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 12962 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 78U, chartInstance->c1_sfEvent); |
| 12963 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 122U, chartInstance->c1_sfEvent); |
| 12964 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 123U, chartInstance->c1_sfEvent); |
| 12965 | c1_b_out = (CV_TRANSITION_EVAL(123U, (int32_T)_SFD_CCP_CALL(5U, 123U, 0, |
| 12966 | (boolean_T)CV_RELATIONAL_EVAL(5U, 123U, 0, (real_T) |
| 12967 | (*chartInstance->c1_shiftCom)[0], (real_T)chartInstance->c1_lastShiftCom, 0, |
| 12968 | 1U, (*chartInstance->c1_shiftCom)[0] != chartInstance->c1_lastShiftCom) != |
| 12969 | 0U, chartInstance->c1_sfEvent)) != 0); |
| 12970 | if (c1_b_out) { |
| 12971 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 123U, chartInstance->c1_sfEvent); |
| 12972 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 124U, chartInstance->c1_sfEvent); |
| 12973 | chartInstance->c1_lastShiftCom = (*chartInstance->c1_shiftCom)[0]; |
| 12974 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 32, 681U, (void *) |
| 12975 | &chartInstance->c1_lastShiftCom); |
| 12976 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShiftCom, 3U); |
| 12977 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 80U, |
| 12978 | chartInstance->c1_sfEvent); |
| 12979 | c1_c_out = (CV_TRANSITION_EVAL(80U, (int32_T)_SFD_CCP_CALL(5U, 80U, 0, |
| 12980 | (boolean_T)CV_RELATIONAL_EVAL(5U, 80U, 0, (real_T) |
| 12981 | (*chartInstance->c1_shiftCom)[1], (real_T)c1_const_GEAR_COMMAND_UP, 0, 0U, |
| 12982 | (*chartInstance->c1_shiftCom)[1] == c1_const_GEAR_COMMAND_UP) != 0U, |
| 12983 | chartInstance->c1_sfEvent)) != 0); |
| 12984 | if (c1_c_out) { |
| 12985 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 80U, chartInstance->c1_sfEvent); |
| 12986 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 81U, chartInstance->c1_sfEvent); |
| 12987 | c1_previousEvent = chartInstance->c1_sfEvent; |
| 12988 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 12989 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 12990 | chartInstance->c1_sfEvent); |
| 12991 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 0U) { |
| 12992 | } else { |
| 12993 | c1_NEUTRAL_STATE(chartInstance); |
| 12994 | } |
| 12995 | |
| 12996 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 12997 | chartInstance->c1_sfEvent); |
| 12998 | chartInstance->c1_sfEvent = c1_previousEvent; |
| 12999 | c1_c_previousEvent = chartInstance->c1_sfEvent; |
| 13000 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 13001 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13002 | chartInstance->c1_sfEvent); |
| 13003 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13004 | } else { |
| 13005 | c1_GEARSHIFT(chartInstance); |
| 13006 | } |
| 13007 | |
| 13008 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13009 | chartInstance->c1_sfEvent); |
| 13010 | chartInstance->c1_sfEvent = c1_c_previousEvent; |
| 13011 | chartInstance->c1_lastTryShift[0] = c1_const_GEAR_COMMAND_UP; |
| 13012 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13013 | &chartInstance->c1_lastTryShift); |
| 13014 | for (c1_i65 = 0; c1_i65 < 2; c1_i65++) { |
| 13015 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i65], |
| 13016 | 23U); |
| 13017 | } |
| 13018 | |
| 13019 | c1_i66 = c1__s32_add__(chartInstance, (int32_T)*chartInstance->c1_currGear, |
| 13020 | 1, 453U, 130, 1); |
| 13021 | c1_covSaturation = false; |
| 13022 | if (c1_i66 < 0) { |
| 13023 | c1_covSaturation = true; |
| 13024 | c1_i66 = 0; |
| 13025 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 453U, 130U, 1U); |
| 13026 | } else { |
| 13027 | if (c1_i66 > 65535) { |
| 13028 | c1_i66 = 65535; |
| 13029 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 453U, 130U, 1U); |
| 13030 | } |
| 13031 | |
| 13032 | CV_SATURATION_EVAL(5, 81, 0, 0, c1_covSaturation); |
| 13033 | } |
| 13034 | |
| 13035 | chartInstance->c1_lastTryShift[1] = (uint16_T)c1_i66; |
| 13036 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13037 | &chartInstance->c1_lastTryShift); |
| 13038 | for (c1_i71 = 0; c1_i71 < 2; c1_i71++) { |
| 13039 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i71], |
| 13040 | 23U); |
| 13041 | } |
| 13042 | } else { |
| 13043 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 82U, chartInstance->c1_sfEvent); |
| 13044 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 83U, |
| 13045 | chartInstance->c1_sfEvent); |
| 13046 | c1_d_out = (CV_TRANSITION_EVAL(83U, (int32_T)_SFD_CCP_CALL(5U, 83U, 0, |
| 13047 | (boolean_T)CV_RELATIONAL_EVAL(5U, 83U, 0, (real_T) |
| 13048 | (*chartInstance->c1_shiftCom)[1], (real_T)c1_const_GEAR_COMMAND_DOWN, 0, |
| 13049 | 0U, (*chartInstance->c1_shiftCom)[1] == c1_const_GEAR_COMMAND_DOWN) != |
| 13050 | 0U, chartInstance->c1_sfEvent)) != 0); |
| 13051 | if (c1_d_out) { |
| 13052 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 83U, chartInstance->c1_sfEvent); |
| 13053 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 84U, chartInstance->c1_sfEvent); |
| 13054 | c1_b_previousEvent = chartInstance->c1_sfEvent; |
| 13055 | chartInstance->c1_sfEvent = c1_event_GearshiftDown; |
| 13056 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13057 | chartInstance->c1_sfEvent); |
| 13058 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 0U) { |
| 13059 | } else { |
| 13060 | c1_NEUTRAL_STATE(chartInstance); |
| 13061 | } |
| 13062 | |
| 13063 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13064 | chartInstance->c1_sfEvent); |
| 13065 | chartInstance->c1_sfEvent = c1_b_previousEvent; |
| 13066 | c1_e_previousEvent = chartInstance->c1_sfEvent; |
| 13067 | chartInstance->c1_sfEvent = c1_event_GearshiftDown; |
| 13068 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13069 | chartInstance->c1_sfEvent); |
| 13070 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13071 | } else { |
| 13072 | c1_GEARSHIFT(chartInstance); |
| 13073 | } |
| 13074 | |
| 13075 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13076 | chartInstance->c1_sfEvent); |
| 13077 | chartInstance->c1_sfEvent = c1_e_previousEvent; |
| 13078 | chartInstance->c1_lastTryShift[0] = c1_const_GEAR_COMMAND_DOWN; |
| 13079 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13080 | &chartInstance->c1_lastTryShift); |
| 13081 | for (c1_i67 = 0; c1_i67 < 2; c1_i67++) { |
| 13082 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i67], |
| 13083 | 23U); |
| 13084 | } |
| 13085 | |
| 13086 | c1_i68 = c1__s32_minus__(chartInstance, (int32_T) |
| 13087 | *chartInstance->c1_currGear, 1, 459U, 136, 1); |
| 13088 | c1_b_covSaturation = false; |
| 13089 | if (c1_i68 < 0) { |
| 13090 | c1_b_covSaturation = true; |
| 13091 | c1_i68 = 0; |
| 13092 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 459U, 136U, 1U); |
| 13093 | } else { |
| 13094 | if (c1_i68 > 65535) { |
| 13095 | c1_i68 = 65535; |
| 13096 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 459U, 136U, 1U); |
| 13097 | } |
| 13098 | |
| 13099 | CV_SATURATION_EVAL(5, 84, 0, 0, c1_b_covSaturation); |
| 13100 | } |
| 13101 | |
| 13102 | chartInstance->c1_lastTryShift[1] = (uint16_T)c1_i68; |
| 13103 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13104 | &chartInstance->c1_lastTryShift); |
| 13105 | for (c1_i73 = 0; c1_i73 < 2; c1_i73++) { |
| 13106 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i73], |
| 13107 | 23U); |
| 13108 | } |
| 13109 | } else { |
| 13110 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 85U, chartInstance->c1_sfEvent); |
| 13111 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 86U, |
| 13112 | chartInstance->c1_sfEvent); |
| 13113 | c1_e_out = (CV_TRANSITION_EVAL(86U, (int32_T)_SFD_CCP_CALL(5U, 86U, 0, |
| 13114 | (boolean_T)CV_RELATIONAL_EVAL(5U, 86U, 0, (real_T) |
| 13115 | (*chartInstance->c1_shiftCom)[1], (real_T) |
| 13116 | c1_const_GEAR_COMMAND_NEUTRAL_UP, 0, 0U, (*chartInstance->c1_shiftCom) |
| 13117 | [1] == c1_const_GEAR_COMMAND_NEUTRAL_UP) != 0U, |
| 13118 | chartInstance->c1_sfEvent)) != 0); |
| 13119 | if (c1_e_out) { |
| 13120 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 86U, chartInstance->c1_sfEvent); |
| 13121 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 87U, chartInstance->c1_sfEvent); |
| 13122 | c1_d_previousEvent = chartInstance->c1_sfEvent; |
| 13123 | chartInstance->c1_sfEvent = c1_event_GearshiftSetNeutral; |
| 13124 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftSetNeutral, |
| 13125 | chartInstance->c1_sfEvent); |
| 13126 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 0U) { |
| 13127 | } else { |
| 13128 | c1_NEUTRAL_STATE(chartInstance); |
| 13129 | } |
| 13130 | |
| 13131 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftSetNeutral, |
| 13132 | chartInstance->c1_sfEvent); |
| 13133 | chartInstance->c1_sfEvent = c1_d_previousEvent; |
| 13134 | c1_g_previousEvent = chartInstance->c1_sfEvent; |
| 13135 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 13136 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13137 | chartInstance->c1_sfEvent); |
| 13138 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13139 | } else { |
| 13140 | c1_GEARSHIFT(chartInstance); |
| 13141 | } |
| 13142 | |
| 13143 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13144 | chartInstance->c1_sfEvent); |
| 13145 | chartInstance->c1_sfEvent = c1_g_previousEvent; |
| 13146 | chartInstance->c1_lastTryShift[0] = c1_const_GEAR_COMMAND_NEUTRAL_UP; |
| 13147 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13148 | &chartInstance->c1_lastTryShift); |
| 13149 | for (c1_i69 = 0; c1_i69 < 2; c1_i69++) { |
| 13150 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i69], |
| 13151 | 23U); |
| 13152 | } |
| 13153 | |
| 13154 | chartInstance->c1_lastTryShift[1] = 0U; |
| 13155 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13156 | &chartInstance->c1_lastTryShift); |
| 13157 | for (c1_i72 = 0; c1_i72 < 2; c1_i72++) { |
| 13158 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastTryShift[c1_i72], |
| 13159 | 23U); |
| 13160 | } |
| 13161 | } else { |
| 13162 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 88U, chartInstance->c1_sfEvent); |
| 13163 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 89U, |
| 13164 | chartInstance->c1_sfEvent); |
| 13165 | c1_f_out = (CV_TRANSITION_EVAL(89U, (int32_T)_SFD_CCP_CALL(5U, 89U, 0, |
| 13166 | (boolean_T)CV_RELATIONAL_EVAL(5U, 89U, 0, (real_T) |
| 13167 | (*chartInstance->c1_shiftCom)[1], (real_T) |
| 13168 | c1_const_GEAR_COMMAND_NEUTRAL_DOWN, 0, 0U, |
| 13169 | (*chartInstance->c1_shiftCom)[1] == |
| 13170 | c1_const_GEAR_COMMAND_NEUTRAL_DOWN) != 0U, chartInstance->c1_sfEvent)) |
| 13171 | != 0); |
| 13172 | if (c1_f_out) { |
| 13173 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 89U, chartInstance->c1_sfEvent); |
| 13174 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 90U, chartInstance->c1_sfEvent); |
| 13175 | c1_f_previousEvent = chartInstance->c1_sfEvent; |
| 13176 | chartInstance->c1_sfEvent = c1_event_GearshiftSetNeutral; |
| 13177 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, |
| 13178 | c1_event_GearshiftSetNeutral, chartInstance->c1_sfEvent); |
| 13179 | if (chartInstance->c1_is_active_NEUTRAL_STATE == 0U) { |
| 13180 | } else { |
| 13181 | c1_NEUTRAL_STATE(chartInstance); |
| 13182 | } |
| 13183 | |
| 13184 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftSetNeutral, |
| 13185 | chartInstance->c1_sfEvent); |
| 13186 | chartInstance->c1_sfEvent = c1_f_previousEvent; |
| 13187 | c1_h_previousEvent = chartInstance->c1_sfEvent; |
| 13188 | chartInstance->c1_sfEvent = c1_event_GearshiftDown; |
| 13189 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13190 | chartInstance->c1_sfEvent); |
| 13191 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13192 | } else { |
| 13193 | c1_GEARSHIFT(chartInstance); |
| 13194 | } |
| 13195 | |
| 13196 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftDown, |
| 13197 | chartInstance->c1_sfEvent); |
| 13198 | chartInstance->c1_sfEvent = c1_h_previousEvent; |
| 13199 | chartInstance->c1_lastTryShift[0] = |
| 13200 | c1_const_GEAR_COMMAND_NEUTRAL_DOWN; |
| 13201 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13202 | &chartInstance->c1_lastTryShift); |
| 13203 | for (c1_i70 = 0; c1_i70 < 2; c1_i70++) { |
| 13204 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance-> |
| 13205 | c1_lastTryShift[c1_i70], 23U); |
| 13206 | } |
| 13207 | |
| 13208 | chartInstance->c1_lastTryShift[1] = 0U; |
| 13209 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 13210 | &chartInstance->c1_lastTryShift); |
| 13211 | for (c1_i74 = 0; c1_i74 < 2; c1_i74++) { |
| 13212 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance-> |
| 13213 | c1_lastTryShift[c1_i74], 23U); |
| 13214 | } |
| 13215 | } else { |
| 13216 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 91U, chartInstance->c1_sfEvent); |
| 13217 | } |
| 13218 | } |
| 13219 | } |
| 13220 | } |
| 13221 | } else { |
| 13222 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 125U, chartInstance->c1_sfEvent); |
| 13223 | } |
| 13224 | |
| 13225 | _SFD_SYMBOL_SCOPE_POP(); |
| 13226 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 78U, chartInstance->c1_sfEvent); |
| 13227 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 78U, chartInstance->c1_sfEvent); |
| 13228 | } |
| 13229 | |
| 13230 | static void c1_aacCheckShift(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 13231 | { |
| 13232 | boolean_T c1_b_out; |
| 13233 | int32_T c1_q0; |
| 13234 | int32_T c1_q1; |
| 13235 | boolean_T c1_covSaturation; |
| 13236 | int32_T c1_qY; |
| 13237 | int32_T c1_i75; |
| 13238 | boolean_T c1_c_out; |
| 13239 | int32_T c1_b_q0; |
| 13240 | int32_T c1_b_q1; |
| 13241 | boolean_T c1_b_covSaturation; |
| 13242 | int32_T c1_b_qY; |
| 13243 | int32_T c1_i76; |
| 13244 | boolean_T c1_d_out; |
| 13245 | int32_T c1_previousEvent; |
| 13246 | int32_T c1_i77; |
| 13247 | boolean_T c1_c_covSaturation; |
| 13248 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 44U, chartInstance->c1_sfEvent); |
| 13249 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 13250 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 44U, chartInstance->c1_sfEvent); |
| 13251 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 113U, chartInstance->c1_sfEvent); |
| 13252 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 133U, chartInstance->c1_sfEvent); |
| 13253 | c1_b_out = (CV_TRANSITION_EVAL(133U, (int32_T)_SFD_CCP_CALL(5U, 133U, 0, |
| 13254 | (boolean_T)CV_RELATIONAL_EVAL(5U, 133U, 0, (real_T) |
| 13255 | chartInstance->c1_lastShift, (real_T)*chartInstance->c1_currGear, 0, 0U, |
| 13256 | chartInstance->c1_lastShift == *chartInstance->c1_currGear) != 0U, |
| 13257 | chartInstance->c1_sfEvent)) != 0); |
| 13258 | if (c1_b_out) { |
| 13259 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 133U, chartInstance->c1_sfEvent); |
| 13260 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 134U, chartInstance->c1_sfEvent); |
| 13261 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 114U, |
| 13262 | chartInstance->c1_sfEvent); |
| 13263 | c1_q0 = c1__u8_s32_(chartInstance, (int32_T)acc_params_RPM_LIMIT_1_2, 605U, |
| 13264 | 12, 14) + *chartInstance->c1_currGear; |
| 13265 | c1_q1 = 1; |
| 13266 | c1_covSaturation = false; |
| 13267 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 13268 | c1_covSaturation = true; |
| 13269 | c1_qY = MAX_int32_T; |
| 13270 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 605U, 12U, 14U); |
| 13271 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 13272 | c1_covSaturation = true; |
| 13273 | c1_qY = MIN_int32_T; |
| 13274 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 605U, 12U, 14U); |
| 13275 | } else { |
| 13276 | c1_qY = c1_q0 - c1_q1; |
| 13277 | } |
| 13278 | |
| 13279 | CV_SATURATION_EVAL(5, 114, 0, 0, c1_covSaturation); |
| 13280 | c1_i75 = (*chartInstance->c1_acc_parameters)[sf_array_bounds_check |
| 13281 | (sfGlobalDebugInstanceStruct, chartInstance->S, 605U, 12, 14, 29U, c1_qY, |
| 13282 | 0, 15)]; |
| 13283 | c1_c_out = (CV_TRANSITION_EVAL(114U, (int32_T)_SFD_CCP_CALL(5U, 114U, 0, |
| 13284 | (boolean_T)CV_RELATIONAL_EVAL(5U, 114U, 0, (real_T) |
| 13285 | *chartInstance->c1_currRpm, (real_T)c1_i75, 0, 5U, |
| 13286 | *chartInstance->c1_currRpm >= c1_i75) != 0U, chartInstance->c1_sfEvent)) |
| 13287 | != 0); |
| 13288 | if (c1_c_out) { |
| 13289 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 114U, chartInstance->c1_sfEvent); |
| 13290 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 116U, chartInstance->c1_sfEvent); |
| 13291 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 117U, |
| 13292 | chartInstance->c1_sfEvent); |
| 13293 | c1_b_q0 = c1__u8_s32_(chartInstance, (int32_T)acc_params_SPEED_LIMIT_1_2, |
| 13294 | 611U, 16, 14) + *chartInstance->c1_currGear; |
| 13295 | c1_b_q1 = 1; |
| 13296 | c1_b_covSaturation = false; |
| 13297 | if ((c1_b_q1 < 0) && (c1_b_q0 > c1_b_q1 + MAX_int32_T)) { |
| 13298 | c1_b_covSaturation = true; |
| 13299 | c1_b_qY = MAX_int32_T; |
| 13300 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 611U, 16U, 14U); |
| 13301 | } else if ((c1_b_q1 > 0) && (c1_b_q0 < c1_b_q1 + MIN_int32_T)) { |
| 13302 | c1_b_covSaturation = true; |
| 13303 | c1_b_qY = MIN_int32_T; |
| 13304 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 611U, 16U, 14U); |
| 13305 | } else { |
| 13306 | c1_b_qY = c1_b_q0 - c1_b_q1; |
| 13307 | } |
| 13308 | |
| 13309 | CV_SATURATION_EVAL(5, 117, 0, 0, c1_b_covSaturation); |
| 13310 | c1_i76 = (*chartInstance->c1_acc_parameters)[sf_array_bounds_check |
| 13311 | (sfGlobalDebugInstanceStruct, chartInstance->S, 611U, 16, 14, 29U, |
| 13312 | c1_b_qY, 0, 15)]; |
| 13313 | c1_d_out = (CV_TRANSITION_EVAL(117U, (int32_T)_SFD_CCP_CALL(5U, 117U, 0, |
| 13314 | (boolean_T)CV_RELATIONAL_EVAL(5U, 117U, 0, (real_T) |
| 13315 | *chartInstance->c1_currVhSpeed, (real_T)c1_i76, 0, 5U, |
| 13316 | *chartInstance->c1_currVhSpeed >= c1_i76) != 0U, |
| 13317 | chartInstance->c1_sfEvent)) != 0); |
| 13318 | if (c1_d_out) { |
| 13319 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 117U, chartInstance->c1_sfEvent); |
| 13320 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 119U, chartInstance->c1_sfEvent); |
| 13321 | c1_previousEvent = chartInstance->c1_sfEvent; |
| 13322 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 13323 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13324 | chartInstance->c1_sfEvent); |
| 13325 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13326 | } else { |
| 13327 | c1_GEARSHIFT(chartInstance); |
| 13328 | } |
| 13329 | |
| 13330 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13331 | chartInstance->c1_sfEvent); |
| 13332 | chartInstance->c1_sfEvent = c1_previousEvent; |
| 13333 | c1_i77 = c1__s32_add__(chartInstance, (int32_T) |
| 13334 | chartInstance->c1_lastShift, 1, 615U, 53, 1); |
| 13335 | c1_c_covSaturation = false; |
| 13336 | if (c1_i77 < 0) { |
| 13337 | c1_c_covSaturation = true; |
| 13338 | c1_i77 = 0; |
| 13339 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 615U, 53U, 1U); |
| 13340 | } else { |
| 13341 | if (c1_i77 > 255) { |
| 13342 | c1_i77 = 255; |
| 13343 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 615U, 53U, 1U); |
| 13344 | } |
| 13345 | |
| 13346 | CV_SATURATION_EVAL(5, 119, 0, 0, c1_c_covSaturation); |
| 13347 | } |
| 13348 | |
| 13349 | chartInstance->c1_lastShift = (uint8_T)c1_i77; |
| 13350 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 13351 | &chartInstance->c1_lastShift); |
| 13352 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 13353 | } else { |
| 13354 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 118U, chartInstance->c1_sfEvent); |
| 13355 | } |
| 13356 | } else { |
| 13357 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 115U, chartInstance->c1_sfEvent); |
| 13358 | } |
| 13359 | } else { |
| 13360 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 135U, chartInstance->c1_sfEvent); |
| 13361 | } |
| 13362 | |
| 13363 | _SFD_SYMBOL_SCOPE_POP(); |
| 13364 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 44U, chartInstance->c1_sfEvent); |
| 13365 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 44U, chartInstance->c1_sfEvent); |
| 13366 | } |
| 13367 | |
| 13368 | static int32_T c1_getAacParam(SFc1_GCU_Model_genCodeInstanceStruct |
| 13369 | *chartInstance, c1_acc_params c1_index) |
| 13370 | { |
| 13371 | int32_T c1_param; |
| 13372 | int32_T c1_b_param; |
| 13373 | _SFD_SET_DATA_VALUE_PTR(85U, (void *)&c1_param); |
| 13374 | _SFD_SET_DATA_VALUE_PTR(79U, (void *)&c1_index); |
| 13375 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 46U, chartInstance->c1_sfEvent); |
| 13376 | _SFD_SYMBOL_SCOPE_PUSH(2U, 0U); |
| 13377 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("index", &c1_index, c1_m_sf_marshallOut, |
| 13378 | c1_i_sf_marshallIn); |
| 13379 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("param", &c1_param, c1_sf_marshallOut, |
| 13380 | c1_sf_marshallIn); |
| 13381 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 46U, chartInstance->c1_sfEvent); |
| 13382 | c1_param = 0; |
| 13383 | _SFD_DATA_RANGE_CHECK((real_T)c1_param, 85U); |
| 13384 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 108U, chartInstance->c1_sfEvent); |
| 13385 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 109U, chartInstance->c1_sfEvent); |
| 13386 | c1_param = (*chartInstance->c1_acc_parameters)[sf_array_bounds_check |
| 13387 | (sfGlobalDebugInstanceStruct, chartInstance->S, 571U, 9, 14, 29U, (int32_T) |
| 13388 | c1_index, 0, 15)]; |
| 13389 | _SFD_DATA_RANGE_CHECK((real_T)c1_param, 85U); |
| 13390 | c1_b_param = c1_param; |
| 13391 | sf_mex_printf("%s =\\n", "param"); |
| 13392 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, c1_b_param); |
| 13393 | _SFD_SYMBOL_SCOPE_POP(); |
| 13394 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 46U, chartInstance->c1_sfEvent); |
| 13395 | _SFD_UNSET_DATA_VALUE_PTR(85U); |
| 13396 | _SFD_UNSET_DATA_VALUE_PTR(79U); |
| 13397 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 46U, chartInstance->c1_sfEvent); |
| 13398 | return c1_param; |
| 13399 | } |
| 13400 | |
| 13401 | static void c1_autoXCheckShift(SFc1_GCU_Model_genCodeInstanceStruct |
| 13402 | *chartInstance) |
| 13403 | { |
| 13404 | boolean_T c1_b_out; |
| 13405 | int32_T c1_q0; |
| 13406 | int32_T c1_q1; |
| 13407 | boolean_T c1_covSaturation; |
| 13408 | int32_T c1_qY; |
| 13409 | int32_T c1_i78; |
| 13410 | boolean_T c1_c_out; |
| 13411 | int32_T c1_b_q0; |
| 13412 | int32_T c1_b_q1; |
| 13413 | boolean_T c1_b_covSaturation; |
| 13414 | int32_T c1_b_qY; |
| 13415 | int32_T c1_i79; |
| 13416 | boolean_T c1_d_out; |
| 13417 | int32_T c1_previousEvent; |
| 13418 | int32_T c1_i80; |
| 13419 | boolean_T c1_c_covSaturation; |
| 13420 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 70U, chartInstance->c1_sfEvent); |
| 13421 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 13422 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 70U, chartInstance->c1_sfEvent); |
| 13423 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 165U, chartInstance->c1_sfEvent); |
| 13424 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 166U, chartInstance->c1_sfEvent); |
| 13425 | c1_b_out = (CV_TRANSITION_EVAL(166U, (int32_T)_SFD_CCP_CALL(5U, 166U, 0, |
| 13426 | (boolean_T)CV_RELATIONAL_EVAL(5U, 166U, 0, (real_T) |
| 13427 | chartInstance->c1_lastShift, (real_T)*chartInstance->c1_currGear, 0, 0U, |
| 13428 | chartInstance->c1_lastShift == *chartInstance->c1_currGear) != 0U, |
| 13429 | chartInstance->c1_sfEvent)) != 0); |
| 13430 | if (c1_b_out) { |
| 13431 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 166U, chartInstance->c1_sfEvent); |
| 13432 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 168U, chartInstance->c1_sfEvent); |
| 13433 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 169U, |
| 13434 | chartInstance->c1_sfEvent); |
| 13435 | c1_q0 = c1__u8_s32_(chartInstance, (int32_T)autoX_params_AUTOX_RPM_LIMIT_1_2, |
| 13436 | 1019U, 12, 16) + *chartInstance->c1_currGear; |
| 13437 | c1_q1 = 1; |
| 13438 | c1_covSaturation = false; |
| 13439 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 13440 | c1_covSaturation = true; |
| 13441 | c1_qY = MAX_int32_T; |
| 13442 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1019U, 12U, 16U); |
| 13443 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 13444 | c1_covSaturation = true; |
| 13445 | c1_qY = MIN_int32_T; |
| 13446 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1019U, 12U, 16U); |
| 13447 | } else { |
| 13448 | c1_qY = c1_q0 - c1_q1; |
| 13449 | } |
| 13450 | |
| 13451 | CV_SATURATION_EVAL(5, 169, 0, 0, c1_covSaturation); |
| 13452 | c1_i78 = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 13453 | (sfGlobalDebugInstanceStruct, chartInstance->S, 1019U, 12, 16, 32U, c1_qY, |
| 13454 | 0, 15)]; |
| 13455 | c1_c_out = (CV_TRANSITION_EVAL(169U, (int32_T)_SFD_CCP_CALL(5U, 169U, 0, |
| 13456 | (boolean_T)CV_RELATIONAL_EVAL(5U, 169U, 0, (real_T) |
| 13457 | *chartInstance->c1_currRpm, (real_T)c1_i78, 0, 5U, |
| 13458 | *chartInstance->c1_currRpm >= c1_i78) != 0U, chartInstance->c1_sfEvent)) |
| 13459 | != 0); |
| 13460 | if (c1_c_out) { |
| 13461 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 169U, chartInstance->c1_sfEvent); |
| 13462 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 171U, chartInstance->c1_sfEvent); |
| 13463 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 172U, |
| 13464 | chartInstance->c1_sfEvent); |
| 13465 | c1_b_q0 = c1__u8_s32_(chartInstance, (int32_T) |
| 13466 | autoX_params_AUTOX_SPEED_LIMIT_1_2, 1022U, 16, 16) + |
| 13467 | *chartInstance->c1_currGear; |
| 13468 | c1_b_q1 = 1; |
| 13469 | c1_b_covSaturation = false; |
| 13470 | if ((c1_b_q1 < 0) && (c1_b_q0 > c1_b_q1 + MAX_int32_T)) { |
| 13471 | c1_b_covSaturation = true; |
| 13472 | c1_b_qY = MAX_int32_T; |
| 13473 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1022U, 16U, 16U); |
| 13474 | } else if ((c1_b_q1 > 0) && (c1_b_q0 < c1_b_q1 + MIN_int32_T)) { |
| 13475 | c1_b_covSaturation = true; |
| 13476 | c1_b_qY = MIN_int32_T; |
| 13477 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1022U, 16U, 16U); |
| 13478 | } else { |
| 13479 | c1_b_qY = c1_b_q0 - c1_b_q1; |
| 13480 | } |
| 13481 | |
| 13482 | CV_SATURATION_EVAL(5, 172, 0, 0, c1_b_covSaturation); |
| 13483 | c1_i79 = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 13484 | (sfGlobalDebugInstanceStruct, chartInstance->S, 1022U, 16, 16, 32U, |
| 13485 | c1_b_qY, 0, 15)]; |
| 13486 | c1_d_out = (CV_TRANSITION_EVAL(172U, (int32_T)_SFD_CCP_CALL(5U, 172U, 0, |
| 13487 | (boolean_T)CV_RELATIONAL_EVAL(5U, 172U, 0, (real_T) |
| 13488 | *chartInstance->c1_currVhSpeed, (real_T)c1_i79, 0, 5U, |
| 13489 | *chartInstance->c1_currVhSpeed >= c1_i79) != 0U, |
| 13490 | chartInstance->c1_sfEvent)) != 0); |
| 13491 | if (c1_d_out) { |
| 13492 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 172U, chartInstance->c1_sfEvent); |
| 13493 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 174U, chartInstance->c1_sfEvent); |
| 13494 | c1_previousEvent = chartInstance->c1_sfEvent; |
| 13495 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 13496 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13497 | chartInstance->c1_sfEvent); |
| 13498 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13499 | } else { |
| 13500 | c1_GEARSHIFT(chartInstance); |
| 13501 | } |
| 13502 | |
| 13503 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13504 | chartInstance->c1_sfEvent); |
| 13505 | chartInstance->c1_sfEvent = c1_previousEvent; |
| 13506 | c1_i80 = c1__s32_add__(chartInstance, (int32_T) |
| 13507 | chartInstance->c1_lastShift, 1, 1024U, 53, 1); |
| 13508 | c1_c_covSaturation = false; |
| 13509 | if (c1_i80 < 0) { |
| 13510 | c1_c_covSaturation = true; |
| 13511 | c1_i80 = 0; |
| 13512 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1024U, 53U, 1U); |
| 13513 | } else { |
| 13514 | if (c1_i80 > 255) { |
| 13515 | c1_i80 = 255; |
| 13516 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 1024U, 53U, 1U); |
| 13517 | } |
| 13518 | |
| 13519 | CV_SATURATION_EVAL(5, 174, 0, 0, c1_c_covSaturation); |
| 13520 | } |
| 13521 | |
| 13522 | chartInstance->c1_lastShift = (uint8_T)c1_i80; |
| 13523 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 13524 | &chartInstance->c1_lastShift); |
| 13525 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 13526 | } else { |
| 13527 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 173U, chartInstance->c1_sfEvent); |
| 13528 | } |
| 13529 | } else { |
| 13530 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 170U, chartInstance->c1_sfEvent); |
| 13531 | } |
| 13532 | } else { |
| 13533 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 167U, chartInstance->c1_sfEvent); |
| 13534 | } |
| 13535 | |
| 13536 | _SFD_SYMBOL_SCOPE_POP(); |
| 13537 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 70U, chartInstance->c1_sfEvent); |
| 13538 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 70U, chartInstance->c1_sfEvent); |
| 13539 | } |
| 13540 | |
| 13541 | static int32_T c1_getAutoXParam(SFc1_GCU_Model_genCodeInstanceStruct |
| 13542 | *chartInstance, c1_autoX_params c1_index) |
| 13543 | { |
| 13544 | int32_T c1_param; |
| 13545 | int32_T c1_b_param; |
| 13546 | _SFD_SET_DATA_VALUE_PTR(83U, (void *)&c1_param); |
| 13547 | _SFD_SET_DATA_VALUE_PTR(78U, (void *)&c1_index); |
| 13548 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 72U, chartInstance->c1_sfEvent); |
| 13549 | _SFD_SYMBOL_SCOPE_PUSH(2U, 0U); |
| 13550 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("index", &c1_index, c1_n_sf_marshallOut, |
| 13551 | c1_j_sf_marshallIn); |
| 13552 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("param", &c1_param, c1_sf_marshallOut, |
| 13553 | c1_sf_marshallIn); |
| 13554 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 72U, chartInstance->c1_sfEvent); |
| 13555 | c1_param = 0; |
| 13556 | _SFD_DATA_RANGE_CHECK((real_T)c1_param, 83U); |
| 13557 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 175U, chartInstance->c1_sfEvent); |
| 13558 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 176U, chartInstance->c1_sfEvent); |
| 13559 | c1_param = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 13560 | (sfGlobalDebugInstanceStruct, chartInstance->S, 1037U, 9, 16, 32U, (int32_T) |
| 13561 | c1_index, 0, 15)]; |
| 13562 | _SFD_DATA_RANGE_CHECK((real_T)c1_param, 83U); |
| 13563 | c1_b_param = c1_param; |
| 13564 | sf_mex_printf("%s =\\n", "param"); |
| 13565 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, c1_b_param); |
| 13566 | _SFD_SYMBOL_SCOPE_POP(); |
| 13567 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 72U, chartInstance->c1_sfEvent); |
| 13568 | _SFD_UNSET_DATA_VALUE_PTR(83U); |
| 13569 | _SFD_UNSET_DATA_VALUE_PTR(78U); |
| 13570 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 72U, chartInstance->c1_sfEvent); |
| 13571 | return c1_param; |
| 13572 | } |
| 13573 | |
| 13574 | static void c1_b_autoXCheckShift(SFc1_GCU_Model_genCodeInstanceStruct |
| 13575 | *chartInstance) |
| 13576 | { |
| 13577 | boolean_T c1_b_out; |
| 13578 | int32_T c1_q0; |
| 13579 | int32_T c1_q1; |
| 13580 | boolean_T c1_covSaturation; |
| 13581 | int32_T c1_qY; |
| 13582 | int32_T c1_i81; |
| 13583 | boolean_T c1_c_out; |
| 13584 | int32_T c1_b_q0; |
| 13585 | int32_T c1_b_q1; |
| 13586 | boolean_T c1_b_covSaturation; |
| 13587 | int32_T c1_b_qY; |
| 13588 | int32_T c1_i82; |
| 13589 | boolean_T c1_d_out; |
| 13590 | int32_T c1_previousEvent; |
| 13591 | int32_T c1_i83; |
| 13592 | boolean_T c1_c_covSaturation; |
| 13593 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 57U, chartInstance->c1_sfEvent); |
| 13594 | _SFD_SYMBOL_SCOPE_PUSH(0U, 0U); |
| 13595 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 57U, chartInstance->c1_sfEvent); |
| 13596 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 220U, chartInstance->c1_sfEvent); |
| 13597 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 221U, chartInstance->c1_sfEvent); |
| 13598 | c1_b_out = (CV_TRANSITION_EVAL(221U, (int32_T)_SFD_CCP_CALL(5U, 221U, 0, |
| 13599 | (boolean_T)CV_RELATIONAL_EVAL(5U, 221U, 0, (real_T) |
| 13600 | chartInstance->c1_lastShift, (real_T)*chartInstance->c1_currGear, 0, 0U, |
| 13601 | chartInstance->c1_lastShift == *chartInstance->c1_currGear) != 0U, |
| 13602 | chartInstance->c1_sfEvent)) != 0); |
| 13603 | if (c1_b_out) { |
| 13604 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 221U, chartInstance->c1_sfEvent); |
| 13605 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 223U, chartInstance->c1_sfEvent); |
| 13606 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 224U, |
| 13607 | chartInstance->c1_sfEvent); |
| 13608 | c1_q0 = c1__u8_s32_(chartInstance, (int32_T)autoX_params_AUTOX_RPM_LIMIT_1_2, |
| 13609 | 2211U, 12, 16) + *chartInstance->c1_currGear; |
| 13610 | c1_q1 = 1; |
| 13611 | c1_covSaturation = false; |
| 13612 | if ((c1_q1 < 0) && (c1_q0 > c1_q1 + MAX_int32_T)) { |
| 13613 | c1_covSaturation = true; |
| 13614 | c1_qY = MAX_int32_T; |
| 13615 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2211U, 12U, 16U); |
| 13616 | } else if ((c1_q1 > 0) && (c1_q0 < c1_q1 + MIN_int32_T)) { |
| 13617 | c1_covSaturation = true; |
| 13618 | c1_qY = MIN_int32_T; |
| 13619 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2211U, 12U, 16U); |
| 13620 | } else { |
| 13621 | c1_qY = c1_q0 - c1_q1; |
| 13622 | } |
| 13623 | |
| 13624 | CV_SATURATION_EVAL(5, 224, 0, 0, c1_covSaturation); |
| 13625 | c1_i81 = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 13626 | (sfGlobalDebugInstanceStruct, chartInstance->S, 2211U, 12, 16, 32U, c1_qY, |
| 13627 | 0, 15)]; |
| 13628 | c1_c_out = (CV_TRANSITION_EVAL(224U, (int32_T)_SFD_CCP_CALL(5U, 224U, 0, |
| 13629 | (boolean_T)CV_RELATIONAL_EVAL(5U, 224U, 0, (real_T) |
| 13630 | *chartInstance->c1_currRpm, (real_T)c1_i81, 0, 5U, |
| 13631 | *chartInstance->c1_currRpm >= c1_i81) != 0U, chartInstance->c1_sfEvent)) |
| 13632 | != 0); |
| 13633 | if (c1_c_out) { |
| 13634 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 224U, chartInstance->c1_sfEvent); |
| 13635 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 226U, chartInstance->c1_sfEvent); |
| 13636 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 227U, |
| 13637 | chartInstance->c1_sfEvent); |
| 13638 | c1_b_q0 = c1__u8_s32_(chartInstance, (int32_T) |
| 13639 | autoX_params_AUTOX_SPEED_LIMIT_1_2, 2214U, 16, 16) + |
| 13640 | *chartInstance->c1_currGear; |
| 13641 | c1_b_q1 = 1; |
| 13642 | c1_b_covSaturation = false; |
| 13643 | if ((c1_b_q1 < 0) && (c1_b_q0 > c1_b_q1 + MAX_int32_T)) { |
| 13644 | c1_b_covSaturation = true; |
| 13645 | c1_b_qY = MAX_int32_T; |
| 13646 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2214U, 16U, 16U); |
| 13647 | } else if ((c1_b_q1 > 0) && (c1_b_q0 < c1_b_q1 + MIN_int32_T)) { |
| 13648 | c1_b_covSaturation = true; |
| 13649 | c1_b_qY = MIN_int32_T; |
| 13650 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2214U, 16U, 16U); |
| 13651 | } else { |
| 13652 | c1_b_qY = c1_b_q0 - c1_b_q1; |
| 13653 | } |
| 13654 | |
| 13655 | CV_SATURATION_EVAL(5, 227, 0, 0, c1_b_covSaturation); |
| 13656 | c1_i82 = (*chartInstance->c1_autoX_parameters)[sf_array_bounds_check |
| 13657 | (sfGlobalDebugInstanceStruct, chartInstance->S, 2214U, 16, 16, 32U, |
| 13658 | c1_b_qY, 0, 15)]; |
| 13659 | c1_d_out = (CV_TRANSITION_EVAL(227U, (int32_T)_SFD_CCP_CALL(5U, 227U, 0, |
| 13660 | (boolean_T)CV_RELATIONAL_EVAL(5U, 227U, 0, (real_T) |
| 13661 | *chartInstance->c1_currVhSpeed, (real_T)c1_i82, 0, 5U, |
| 13662 | *chartInstance->c1_currVhSpeed >= c1_i82) != 0U, |
| 13663 | chartInstance->c1_sfEvent)) != 0); |
| 13664 | if (c1_d_out) { |
| 13665 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 227U, chartInstance->c1_sfEvent); |
| 13666 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 229U, chartInstance->c1_sfEvent); |
| 13667 | c1_previousEvent = chartInstance->c1_sfEvent; |
| 13668 | chartInstance->c1_sfEvent = c1_event_GearshiftUp; |
| 13669 | _SFD_CE_CALL(EVENT_BEFORE_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13670 | chartInstance->c1_sfEvent); |
| 13671 | if (chartInstance->c1_is_active_GEARSHIFT == 0U) { |
| 13672 | } else { |
| 13673 | c1_GEARSHIFT(chartInstance); |
| 13674 | } |
| 13675 | |
| 13676 | _SFD_CE_CALL(EVENT_AFTER_BROADCAST_TAG, c1_event_GearshiftUp, |
| 13677 | chartInstance->c1_sfEvent); |
| 13678 | chartInstance->c1_sfEvent = c1_previousEvent; |
| 13679 | c1_i83 = c1__s32_add__(chartInstance, (int32_T) |
| 13680 | chartInstance->c1_lastShift, 1, 2216U, 53, 1); |
| 13681 | c1_c_covSaturation = false; |
| 13682 | if (c1_i83 < 0) { |
| 13683 | c1_c_covSaturation = true; |
| 13684 | c1_i83 = 0; |
| 13685 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2216U, 53U, 1U); |
| 13686 | } else { |
| 13687 | if (c1_i83 > 255) { |
| 13688 | c1_i83 = 255; |
| 13689 | _SFD_OVERFLOW_DETECTION(SFDB_SATURATE, 2216U, 53U, 1U); |
| 13690 | } |
| 13691 | |
| 13692 | CV_SATURATION_EVAL(5, 229, 0, 0, c1_c_covSaturation); |
| 13693 | } |
| 13694 | |
| 13695 | chartInstance->c1_lastShift = (uint8_T)c1_i83; |
| 13696 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 13697 | &chartInstance->c1_lastShift); |
| 13698 | _SFD_DATA_RANGE_CHECK((real_T)chartInstance->c1_lastShift, 22U); |
| 13699 | } else { |
| 13700 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 228U, chartInstance->c1_sfEvent); |
| 13701 | } |
| 13702 | } else { |
| 13703 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 225U, chartInstance->c1_sfEvent); |
| 13704 | } |
| 13705 | } else { |
| 13706 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 222U, chartInstance->c1_sfEvent); |
| 13707 | } |
| 13708 | |
| 13709 | _SFD_SYMBOL_SCOPE_POP(); |
| 13710 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 57U, chartInstance->c1_sfEvent); |
| 13711 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 57U, chartInstance->c1_sfEvent); |
| 13712 | } |
| 13713 | |
| 13714 | static int32_T c1_Gearshift_getTime(SFc1_GCU_Model_genCodeInstanceStruct |
| 13715 | *chartInstance) |
| 13716 | { |
| 13717 | int32_T c1_b_time; |
| 13718 | boolean_T c1_b_out; |
| 13719 | boolean_T c1_c_out; |
| 13720 | boolean_T c1_d_out; |
| 13721 | boolean_T c1_e_out; |
| 13722 | boolean_T c1_f_out; |
| 13723 | boolean_T c1_g_out; |
| 13724 | boolean_T c1_h_out; |
| 13725 | boolean_T c1_i_out; |
| 13726 | int32_T c1_c_time; |
| 13727 | boolean_T c1_j_out; |
| 13728 | boolean_T c1_k_out; |
| 13729 | boolean_T c1_l_out; |
| 13730 | int32_T c1_d_time; |
| 13731 | boolean_T c1_m_out; |
| 13732 | boolean_T c1_n_out; |
| 13733 | int32_T c1_e_time; |
| 13734 | boolean_T c1_o_out; |
| 13735 | boolean_T c1_p_out; |
| 13736 | int32_T c1_f_time; |
| 13737 | int32_T c1_g_time; |
| 13738 | int32_T c1_h_time; |
| 13739 | _SFD_SET_DATA_VALUE_PTR(84U, (void *)&c1_b_time); |
| 13740 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 19U, chartInstance->c1_sfEvent); |
| 13741 | _SFD_SYMBOL_SCOPE_PUSH(1U, 0U); |
| 13742 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("time", &c1_b_time, c1_sf_marshallOut, |
| 13743 | c1_sf_marshallIn); |
| 13744 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 19U, chartInstance->c1_sfEvent); |
| 13745 | c1_b_time = 0; |
| 13746 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13747 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 19U, chartInstance->c1_sfEvent); |
| 13748 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 20U, chartInstance->c1_sfEvent); |
| 13749 | c1_b_out = (CV_TRANSITION_EVAL(20U, (int32_T)_SFD_CCP_CALL(5U, 20U, 0, |
| 13750 | (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_START) != 0U, |
| 13751 | chartInstance->c1_sfEvent)) != 0); |
| 13752 | if (c1_b_out) { |
| 13753 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 20U, chartInstance->c1_sfEvent); |
| 13754 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 34U, |
| 13755 | chartInstance->c1_sfEvent); |
| 13756 | c1_d_out = (CV_TRANSITION_EVAL(34U, (int32_T)_SFD_CCP_CALL(5U, 34U, 0, |
| 13757 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 13758 | chartInstance->c1_sfEvent)) != 0); |
| 13759 | if (c1_d_out) { |
| 13760 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 34U, chartInstance->c1_sfEvent); |
| 13761 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 35U, chartInstance->c1_sfEvent); |
| 13762 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13763 | (sfGlobalDebugInstanceStruct, chartInstance->S, 276U, 14, 7, 30U, |
| 13764 | (int32_T)DEFAULT_NT_CLUTCH_DELAY, 0, 23)]; |
| 13765 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13766 | } else { |
| 13767 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 36U, chartInstance->c1_sfEvent); |
| 13768 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13769 | (sfGlobalDebugInstanceStruct, chartInstance->S, 323U, 14, 7, 30U, |
| 13770 | (int32_T)DELAY, 0, 23)]; |
| 13771 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13772 | } |
| 13773 | } else { |
| 13774 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 21U, chartInstance->c1_sfEvent); |
| 13775 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 22U, |
| 13776 | chartInstance->c1_sfEvent); |
| 13777 | c1_c_out = (CV_TRANSITION_EVAL(22U, (int32_T)_SFD_CCP_CALL(5U, 22U, 0, |
| 13778 | (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_PUSH) != 0U, |
| 13779 | chartInstance->c1_sfEvent)) != 0); |
| 13780 | if (c1_c_out) { |
| 13781 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 22U, chartInstance->c1_sfEvent); |
| 13782 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 48U, |
| 13783 | chartInstance->c1_sfEvent); |
| 13784 | c1_f_out = (CV_TRANSITION_EVAL(48U, (int32_T)_SFD_CCP_CALL(5U, 48U, 0, |
| 13785 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 13786 | chartInstance->c1_sfEvent)) != 0); |
| 13787 | if (c1_f_out) { |
| 13788 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 48U, chartInstance->c1_sfEvent); |
| 13789 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 56U, chartInstance->c1_sfEvent); |
| 13790 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13791 | (sfGlobalDebugInstanceStruct, chartInstance->S, 364U, 14, 7, 30U, |
| 13792 | (int32_T)NT_CLUTCH_DELAY, 0, 23)]; |
| 13793 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13794 | c1_c_time = c1_b_time; |
| 13795 | sf_mex_printf("%s =\\n", "time"); |
| 13796 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, |
| 13797 | c1_c_time); |
| 13798 | } else { |
| 13799 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 49U, chartInstance->c1_sfEvent); |
| 13800 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 46U, |
| 13801 | chartInstance->c1_sfEvent); |
| 13802 | c1_i_out = (CV_TRANSITION_EVAL(46U, (int32_T)_SFD_CCP_CALL(5U, 46U, 0, |
| 13803 | (boolean_T)CV_RELATIONAL_EVAL(5U, 46U, 0, (real_T) |
| 13804 | *chartInstance->c1_currGear, 1.0, 0, 0U, *chartInstance->c1_currGear == |
| 13805 | 1) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 13806 | if (c1_i_out) { |
| 13807 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 46U, chartInstance->c1_sfEvent); |
| 13808 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 57U, chartInstance->c1_sfEvent); |
| 13809 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13810 | (sfGlobalDebugInstanceStruct, chartInstance->S, 366U, 14, 7, 30U, |
| 13811 | (int32_T)UP_PUSH_1_2, 0, 23)]; |
| 13812 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13813 | c1_d_time = c1_b_time; |
| 13814 | sf_mex_printf("%s =\\n", "time"); |
| 13815 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, |
| 13816 | c1_d_time); |
| 13817 | } else { |
| 13818 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 52U, chartInstance->c1_sfEvent); |
| 13819 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 51U, |
| 13820 | chartInstance->c1_sfEvent); |
| 13821 | c1_l_out = (CV_TRANSITION_EVAL(51U, (int32_T)_SFD_CCP_CALL(5U, 51U, 0, |
| 13822 | (boolean_T)CV_RELATIONAL_EVAL(5U, 51U, 0, (real_T) |
| 13823 | *chartInstance->c1_currGear, 2.0, 0, 0U, *chartInstance->c1_currGear |
| 13824 | == 2) != 0U, chartInstance->c1_sfEvent)) != 0); |
| 13825 | if (c1_l_out) { |
| 13826 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 51U, chartInstance->c1_sfEvent); |
| 13827 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 58U, chartInstance->c1_sfEvent); |
| 13828 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13829 | (sfGlobalDebugInstanceStruct, chartInstance->S, 368U, 14, 7, 30U, |
| 13830 | (int32_T)UP_PUSH_2_3, 0, 23)]; |
| 13831 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13832 | c1_e_time = c1_b_time; |
| 13833 | sf_mex_printf("%s =\\n", "time"); |
| 13834 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, |
| 13835 | c1_e_time); |
| 13836 | } else { |
| 13837 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 50U, chartInstance->c1_sfEvent); |
| 13838 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 54U, |
| 13839 | chartInstance->c1_sfEvent); |
| 13840 | c1_n_out = (CV_TRANSITION_EVAL(54U, (int32_T)_SFD_CCP_CALL(5U, 54U, |
| 13841 | 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 54U, 0, (real_T) |
| 13842 | *chartInstance->c1_currGear, 3.0, 0, 0U, |
| 13843 | *chartInstance->c1_currGear == 3) != 0U, chartInstance->c1_sfEvent)) |
| 13844 | != 0); |
| 13845 | if (c1_n_out) { |
| 13846 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 54U, chartInstance->c1_sfEvent); |
| 13847 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 59U, chartInstance->c1_sfEvent); |
| 13848 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13849 | (sfGlobalDebugInstanceStruct, chartInstance->S, 370U, 14, 7, 30U, |
| 13850 | (int32_T)UP_PUSH_3_4, 0, 23)]; |
| 13851 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13852 | c1_f_time = c1_b_time; |
| 13853 | sf_mex_printf("%s =\\n", "time"); |
| 13854 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, 12, |
| 13855 | c1_f_time); |
| 13856 | } else { |
| 13857 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 55U, chartInstance->c1_sfEvent); |
| 13858 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 47U, |
| 13859 | chartInstance->c1_sfEvent); |
| 13860 | c1_p_out = (CV_TRANSITION_EVAL(47U, (int32_T)_SFD_CCP_CALL(5U, 47U, |
| 13861 | 0, (boolean_T)CV_RELATIONAL_EVAL(5U, 47U, 0, (real_T) |
| 13862 | *chartInstance->c1_currGear, 4.0, 0, 0U, |
| 13863 | *chartInstance->c1_currGear == 4) != 0U, |
| 13864 | chartInstance->c1_sfEvent)) != 0); |
| 13865 | if (c1_p_out) { |
| 13866 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 47U, |
| 13867 | chartInstance->c1_sfEvent); |
| 13868 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 60U, |
| 13869 | chartInstance->c1_sfEvent); |
| 13870 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13871 | (sfGlobalDebugInstanceStruct, chartInstance->S, 372U, 14, 7, |
| 13872 | 30U, (int32_T)UP_PUSH_4_5, 0, 23)]; |
| 13873 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13874 | c1_h_time = c1_b_time; |
| 13875 | sf_mex_printf("%s =\\n", "time"); |
| 13876 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, |
| 13877 | 12, c1_h_time); |
| 13878 | } else { |
| 13879 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 53U, |
| 13880 | chartInstance->c1_sfEvent); |
| 13881 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13882 | (sfGlobalDebugInstanceStruct, chartInstance->S, 357U, 14, 7, |
| 13883 | 30U, (int32_T)UP_PUSH_2_3, 0, 23)]; |
| 13884 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13885 | c1_g_time = c1_b_time; |
| 13886 | sf_mex_printf("%s =\\n", "time"); |
| 13887 | sf_mex_call_debug(sfGlobalDebugInstanceStruct, "disp", 0U, 1U, |
| 13888 | 12, c1_g_time); |
| 13889 | } |
| 13890 | } |
| 13891 | } |
| 13892 | } |
| 13893 | } |
| 13894 | } else { |
| 13895 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 23U, chartInstance->c1_sfEvent); |
| 13896 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 24U, |
| 13897 | chartInstance->c1_sfEvent); |
| 13898 | c1_e_out = (CV_TRANSITION_EVAL(24U, (int32_T)_SFD_CCP_CALL(5U, 24U, 0, |
| 13899 | (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_REBOUND) != 0U, |
| 13900 | chartInstance->c1_sfEvent)) != 0); |
| 13901 | if (c1_e_out) { |
| 13902 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 24U, chartInstance->c1_sfEvent); |
| 13903 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 37U, |
| 13904 | chartInstance->c1_sfEvent); |
| 13905 | c1_h_out = (CV_TRANSITION_EVAL(37U, (int32_T)_SFD_CCP_CALL(5U, 37U, 0, |
| 13906 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 13907 | chartInstance->c1_sfEvent)) != 0); |
| 13908 | if (c1_h_out) { |
| 13909 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 37U, chartInstance->c1_sfEvent); |
| 13910 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 39U, chartInstance->c1_sfEvent); |
| 13911 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13912 | (sfGlobalDebugInstanceStruct, chartInstance->S, 329U, 14, 7, 30U, |
| 13913 | (int32_T)NT_REBOUND_1_N, 0, 23)]; |
| 13914 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13915 | } else { |
| 13916 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 38U, chartInstance->c1_sfEvent); |
| 13917 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13918 | (sfGlobalDebugInstanceStruct, chartInstance->S, 328U, 14, 7, 30U, |
| 13919 | (int32_T)UP_REBOUND, 0, 23)]; |
| 13920 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13921 | } |
| 13922 | } else { |
| 13923 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 25U, chartInstance->c1_sfEvent); |
| 13924 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 26U, |
| 13925 | chartInstance->c1_sfEvent); |
| 13926 | c1_g_out = (CV_TRANSITION_EVAL(26U, (int32_T)_SFD_CCP_CALL(5U, 26U, 0, |
| 13927 | (chartInstance->c1_is_UPSHIFTING == c1_IN_UP_BRAKE) != 0U, |
| 13928 | chartInstance->c1_sfEvent)) != 0); |
| 13929 | if (c1_g_out) { |
| 13930 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 26U, chartInstance->c1_sfEvent); |
| 13931 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 40U, |
| 13932 | chartInstance->c1_sfEvent); |
| 13933 | c1_k_out = (CV_TRANSITION_EVAL(40U, (int32_T)_SFD_CCP_CALL(5U, 40U, 0, |
| 13934 | (chartInstance->c1_is_NEUTRAL_STATE == c1_IN_SET_NEUTRAL) != 0U, |
| 13935 | chartInstance->c1_sfEvent)) != 0); |
| 13936 | if (c1_k_out) { |
| 13937 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 40U, chartInstance->c1_sfEvent); |
| 13938 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 42U, chartInstance->c1_sfEvent); |
| 13939 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13940 | (sfGlobalDebugInstanceStruct, chartInstance->S, 335U, 14, 7, 30U, |
| 13941 | (int32_T)NT_BRAKE_1_N, 0, 23)]; |
| 13942 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13943 | } else { |
| 13944 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 41U, chartInstance->c1_sfEvent); |
| 13945 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13946 | (sfGlobalDebugInstanceStruct, chartInstance->S, 334U, 14, 7, 30U, |
| 13947 | (int32_T)UP_BRAKE, 0, 23)]; |
| 13948 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13949 | } |
| 13950 | } else { |
| 13951 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 27U, chartInstance->c1_sfEvent); |
| 13952 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 28U, |
| 13953 | chartInstance->c1_sfEvent); |
| 13954 | c1_j_out = (CV_TRANSITION_EVAL(28U, (int32_T)_SFD_CCP_CALL(5U, 28U, 0, |
| 13955 | (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_START) != 0U, |
| 13956 | chartInstance->c1_sfEvent)) != 0); |
| 13957 | if (c1_j_out) { |
| 13958 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 28U, chartInstance->c1_sfEvent); |
| 13959 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 43U, chartInstance->c1_sfEvent); |
| 13960 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13961 | (sfGlobalDebugInstanceStruct, chartInstance->S, 337U, 14, 7, 30U, |
| 13962 | (int32_T)CLUTCH, 0, 23)]; |
| 13963 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13964 | } else { |
| 13965 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 29U, chartInstance->c1_sfEvent); |
| 13966 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 30U, |
| 13967 | chartInstance->c1_sfEvent); |
| 13968 | c1_m_out = (CV_TRANSITION_EVAL(30U, (int32_T)_SFD_CCP_CALL(5U, 30U, |
| 13969 | 0, (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_PUSH) != 0U, |
| 13970 | chartInstance->c1_sfEvent)) != 0); |
| 13971 | if (c1_m_out) { |
| 13972 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 30U, chartInstance->c1_sfEvent); |
| 13973 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 44U, chartInstance->c1_sfEvent); |
| 13974 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13975 | (sfGlobalDebugInstanceStruct, chartInstance->S, 339U, 14, 7, 30U, |
| 13976 | (int32_T)DN_PUSH, 0, 23)]; |
| 13977 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13978 | } else { |
| 13979 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 31U, chartInstance->c1_sfEvent); |
| 13980 | _SFD_CT_CALL(TRANSITION_BEFORE_PROCESSING_TAG, 32U, |
| 13981 | chartInstance->c1_sfEvent); |
| 13982 | c1_o_out = (CV_TRANSITION_EVAL(32U, (int32_T)_SFD_CCP_CALL(5U, 32U, |
| 13983 | 0, (chartInstance->c1_is_DOWNSHIFTING == c1_IN_DOWN_REBOUND) != |
| 13984 | 0U, chartInstance->c1_sfEvent)) != 0); |
| 13985 | if (c1_o_out) { |
| 13986 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 32U, |
| 13987 | chartInstance->c1_sfEvent); |
| 13988 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 45U, |
| 13989 | chartInstance->c1_sfEvent); |
| 13990 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13991 | (sfGlobalDebugInstanceStruct, chartInstance->S, 341U, 14, 7, |
| 13992 | 30U, (int32_T)DN_REBOUND, 0, 23)]; |
| 13993 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 13994 | } else { |
| 13995 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 33U, |
| 13996 | chartInstance->c1_sfEvent); |
| 13997 | c1_b_time = (*chartInstance->c1_timings)[sf_array_bounds_check |
| 13998 | (sfGlobalDebugInstanceStruct, chartInstance->S, 270U, 14, 7, |
| 13999 | 30U, (int32_T)DN_BRAKE, 0, 23)]; |
| 14000 | _SFD_DATA_RANGE_CHECK((real_T)c1_b_time, 84U); |
| 14001 | } |
| 14002 | } |
| 14003 | } |
| 14004 | } |
| 14005 | } |
| 14006 | } |
| 14007 | } |
| 14008 | |
| 14009 | _SFD_SYMBOL_SCOPE_POP(); |
| 14010 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 19U, chartInstance->c1_sfEvent); |
| 14011 | _SFD_UNSET_DATA_VALUE_PTR(84U); |
| 14012 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 19U, chartInstance->c1_sfEvent); |
| 14013 | return c1_b_time; |
| 14014 | } |
| 14015 | |
| 14016 | static void c1_Clutch_setValue(SFc1_GCU_Model_genCodeInstanceStruct |
| 14017 | *chartInstance, uint8_T c1_setValue) |
| 14018 | { |
| 14019 | _SFD_DATA_RANGE_CHECK((real_T)c1_setValue, 80U); |
| 14020 | _SFD_SET_DATA_VALUE_PTR(80U, (void *)&c1_setValue); |
| 14021 | _SFD_CS_CALL(FUNCTION_ACTIVE_TAG, 3U, chartInstance->c1_sfEvent); |
| 14022 | _SFD_SYMBOL_SCOPE_PUSH(1U, 0U); |
| 14023 | _SFD_SYMBOL_SCOPE_ADD_IMPORTABLE("setValue", &c1_setValue, c1_b_sf_marshallOut, |
| 14024 | c1_b_sf_marshallIn); |
| 14025 | _SFD_CS_CALL(STATE_ENTER_DURING_FUNCTION_TAG, 3U, chartInstance->c1_sfEvent); |
| 14026 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 98U, chartInstance->c1_sfEvent); |
| 14027 | _SFD_CT_CALL(TRANSITION_ACTIVE_TAG, 99U, chartInstance->c1_sfEvent); |
| 14028 | *chartInstance->c1_clutchCurrVal = c1_setValue; |
| 14029 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 0, 123U, (void *) |
| 14030 | chartInstance->c1_clutchCurrVal); |
| 14031 | _SFD_DATA_RANGE_CHECK_MIN_MAX((real_T)*chartInstance->c1_clutchCurrVal, 47U, |
| 14032 | 0.0, 100.0, 506U, 1, 25); |
| 14033 | sf_call_output_fcn_call(chartInstance->S, 0, "Clutch_set", 0); |
| 14034 | _SFD_SYMBOL_SCOPE_POP(); |
| 14035 | _SFD_CS_CALL(FUNCTION_INACTIVE_TAG, 3U, chartInstance->c1_sfEvent); |
| 14036 | _SFD_UNSET_DATA_VALUE_PTR(80U); |
| 14037 | _SFD_CS_CALL(EXIT_OUT_OF_FUNCTION_TAG, 3U, chartInstance->c1_sfEvent); |
| 14038 | } |
| 14039 | |
| 14040 | static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData) |
| 14041 | { |
| 14042 | const mxArray *c1_mxArrayOutData; |
| 14043 | int32_T c1_u; |
| 14044 | const mxArray *c1_y = NULL; |
| 14045 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14046 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14047 | c1_mxArrayOutData = NULL; |
| 14048 | c1_mxArrayOutData = NULL; |
| 14049 | c1_u = *(int32_T *)c1_inData; |
| 14050 | c1_y = NULL; |
| 14051 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 6, 0U, 0U, 0U, 0), false); |
| 14052 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14053 | return c1_mxArrayOutData; |
| 14054 | } |
| 14055 | |
| 14056 | static int32_T c1_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14057 | *chartInstance, const mxArray *c1_b_sfEvent, const char_T *c1_identifier) |
| 14058 | { |
| 14059 | int32_T c1_y; |
| 14060 | emlrtMsgIdentifier c1_thisId; |
| 14061 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14062 | c1_thisId.fParent = NULL; |
| 14063 | c1_thisId.bParentIsCell = false; |
| 14064 | c1_y = c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_sfEvent), |
| 14065 | &c1_thisId); |
| 14066 | sf_mex_destroy(&c1_b_sfEvent); |
| 14067 | return c1_y; |
| 14068 | } |
| 14069 | |
| 14070 | static int32_T c1_b_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14071 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14072 | { |
| 14073 | int32_T c1_y; |
| 14074 | int32_T c1_i84; |
| 14075 | (void)chartInstance; |
| 14076 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_i84, 1, 6, 0U, 0, 0U, 0); |
| 14077 | c1_y = c1_i84; |
| 14078 | sf_mex_destroy(&c1_u); |
| 14079 | return c1_y; |
| 14080 | } |
| 14081 | |
| 14082 | static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14083 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14084 | { |
| 14085 | const mxArray *c1_b_sfEvent; |
| 14086 | const char_T *c1_identifier; |
| 14087 | emlrtMsgIdentifier c1_thisId; |
| 14088 | int32_T c1_y; |
| 14089 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14090 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14091 | c1_b_sfEvent = sf_mex_dup(c1_mxArrayInData); |
| 14092 | c1_identifier = c1_varName; |
| 14093 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14094 | c1_thisId.fParent = NULL; |
| 14095 | c1_thisId.bParentIsCell = false; |
| 14096 | c1_y = c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_sfEvent), |
| 14097 | &c1_thisId); |
| 14098 | sf_mex_destroy(&c1_b_sfEvent); |
| 14099 | *(int32_T *)c1_outData = c1_y; |
| 14100 | sf_mex_destroy(&c1_mxArrayInData); |
| 14101 | } |
| 14102 | |
| 14103 | static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void |
| 14104 | *c1_inData) |
| 14105 | { |
| 14106 | const mxArray *c1_mxArrayOutData; |
| 14107 | uint8_T c1_u; |
| 14108 | const mxArray *c1_y = NULL; |
| 14109 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14110 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14111 | c1_mxArrayOutData = NULL; |
| 14112 | c1_mxArrayOutData = NULL; |
| 14113 | c1_u = *(uint8_T *)c1_inData; |
| 14114 | c1_y = NULL; |
| 14115 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 3, 0U, 0U, 0U, 0), false); |
| 14116 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14117 | return c1_mxArrayOutData; |
| 14118 | } |
| 14119 | |
| 14120 | static uint8_T c1_c_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14121 | *chartInstance, const mxArray *c1_b_tp_MODES, const char_T *c1_identifier) |
| 14122 | { |
| 14123 | uint8_T c1_y; |
| 14124 | emlrtMsgIdentifier c1_thisId; |
| 14125 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14126 | c1_thisId.fParent = NULL; |
| 14127 | c1_thisId.bParentIsCell = false; |
| 14128 | c1_y = c1_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_tp_MODES), |
| 14129 | &c1_thisId); |
| 14130 | sf_mex_destroy(&c1_b_tp_MODES); |
| 14131 | return c1_y; |
| 14132 | } |
| 14133 | |
| 14134 | static uint8_T c1_d_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14135 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14136 | { |
| 14137 | uint8_T c1_y; |
| 14138 | uint8_T c1_u26; |
| 14139 | (void)chartInstance; |
| 14140 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_u26, 1, 3, 0U, 0, 0U, 0); |
| 14141 | c1_y = c1_u26; |
| 14142 | sf_mex_destroy(&c1_u); |
| 14143 | return c1_y; |
| 14144 | } |
| 14145 | |
| 14146 | static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14147 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14148 | { |
| 14149 | const mxArray *c1_b_tp_MODES; |
| 14150 | const char_T *c1_identifier; |
| 14151 | emlrtMsgIdentifier c1_thisId; |
| 14152 | uint8_T c1_y; |
| 14153 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14154 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14155 | c1_b_tp_MODES = sf_mex_dup(c1_mxArrayInData); |
| 14156 | c1_identifier = c1_varName; |
| 14157 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14158 | c1_thisId.fParent = NULL; |
| 14159 | c1_thisId.bParentIsCell = false; |
| 14160 | c1_y = c1_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_tp_MODES), |
| 14161 | &c1_thisId); |
| 14162 | sf_mex_destroy(&c1_b_tp_MODES); |
| 14163 | *(uint8_T *)c1_outData = c1_y; |
| 14164 | sf_mex_destroy(&c1_mxArrayInData); |
| 14165 | } |
| 14166 | |
| 14167 | static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void |
| 14168 | *c1_inData) |
| 14169 | { |
| 14170 | const mxArray *c1_mxArrayOutData; |
| 14171 | int32_T c1_i85; |
| 14172 | const mxArray *c1_y = NULL; |
| 14173 | uint16_T c1_u[2]; |
| 14174 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14175 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14176 | c1_mxArrayOutData = NULL; |
| 14177 | c1_mxArrayOutData = NULL; |
| 14178 | for (c1_i85 = 0; c1_i85 < 2; c1_i85++) { |
| 14179 | c1_u[c1_i85] = (*(uint16_T (*)[2])c1_inData)[c1_i85]; |
| 14180 | } |
| 14181 | |
| 14182 | c1_y = NULL; |
| 14183 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 5, 0U, 1U, 0U, 1, 2), false); |
| 14184 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14185 | return c1_mxArrayOutData; |
| 14186 | } |
| 14187 | |
| 14188 | static void c1_e_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14189 | *chartInstance, const mxArray *c1_b_lastModeCom, const char_T *c1_identifier, |
| 14190 | uint16_T c1_y[2]) |
| 14191 | { |
| 14192 | emlrtMsgIdentifier c1_thisId; |
| 14193 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14194 | c1_thisId.fParent = NULL; |
| 14195 | c1_thisId.bParentIsCell = false; |
| 14196 | c1_f_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_lastModeCom), &c1_thisId, |
| 14197 | c1_y); |
| 14198 | sf_mex_destroy(&c1_b_lastModeCom); |
| 14199 | } |
| 14200 | |
| 14201 | static void c1_f_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14202 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, |
| 14203 | uint16_T c1_y[2]) |
| 14204 | { |
| 14205 | uint16_T c1_uv0[2]; |
| 14206 | int32_T c1_i86; |
| 14207 | (void)chartInstance; |
| 14208 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_uv0, 1, 5, 0U, 1, 0U, 1, 2); |
| 14209 | for (c1_i86 = 0; c1_i86 < 2; c1_i86++) { |
| 14210 | c1_y[c1_i86] = c1_uv0[c1_i86]; |
| 14211 | } |
| 14212 | |
| 14213 | sf_mex_destroy(&c1_u); |
| 14214 | } |
| 14215 | |
| 14216 | static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14217 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14218 | { |
| 14219 | const mxArray *c1_b_lastModeCom; |
| 14220 | const char_T *c1_identifier; |
| 14221 | emlrtMsgIdentifier c1_thisId; |
| 14222 | uint16_T c1_y[2]; |
| 14223 | int32_T c1_i87; |
| 14224 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14225 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14226 | c1_b_lastModeCom = sf_mex_dup(c1_mxArrayInData); |
| 14227 | c1_identifier = c1_varName; |
| 14228 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14229 | c1_thisId.fParent = NULL; |
| 14230 | c1_thisId.bParentIsCell = false; |
| 14231 | c1_f_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_lastModeCom), &c1_thisId, |
| 14232 | c1_y); |
| 14233 | sf_mex_destroy(&c1_b_lastModeCom); |
| 14234 | for (c1_i87 = 0; c1_i87 < 2; c1_i87++) { |
| 14235 | (*(uint16_T (*)[2])c1_outData)[c1_i87] = c1_y[c1_i87]; |
| 14236 | } |
| 14237 | |
| 14238 | sf_mex_destroy(&c1_mxArrayInData); |
| 14239 | } |
| 14240 | |
| 14241 | static const mxArray *c1_d_sf_marshallOut(void *chartInstanceVoid, void |
| 14242 | *c1_inData) |
| 14243 | { |
| 14244 | const mxArray *c1_mxArrayOutData; |
| 14245 | int32_T c1_i88; |
| 14246 | const mxArray *c1_y = NULL; |
| 14247 | uint16_T c1_u[2]; |
| 14248 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14249 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14250 | c1_mxArrayOutData = NULL; |
| 14251 | c1_mxArrayOutData = NULL; |
| 14252 | for (c1_i88 = 0; c1_i88 < 2; c1_i88++) { |
| 14253 | c1_u[c1_i88] = (*(uint16_T (*)[2])c1_inData)[c1_i88]; |
| 14254 | } |
| 14255 | |
| 14256 | c1_y = NULL; |
| 14257 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 5, 0U, 1U, 0U, 2, 1, 2), false); |
| 14258 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14259 | return c1_mxArrayOutData; |
| 14260 | } |
| 14261 | |
| 14262 | static const mxArray *c1_e_sf_marshallOut(void *chartInstanceVoid, void |
| 14263 | *c1_inData) |
| 14264 | { |
| 14265 | const mxArray *c1_mxArrayOutData; |
| 14266 | uint16_T c1_u; |
| 14267 | const mxArray *c1_y = NULL; |
| 14268 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14269 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14270 | c1_mxArrayOutData = NULL; |
| 14271 | c1_mxArrayOutData = NULL; |
| 14272 | c1_u = *(uint16_T *)c1_inData; |
| 14273 | c1_y = NULL; |
| 14274 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 5, 0U, 0U, 0U, 0), false); |
| 14275 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14276 | return c1_mxArrayOutData; |
| 14277 | } |
| 14278 | |
| 14279 | static uint16_T c1_g_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14280 | *chartInstance, const mxArray *c1_b_stateFb, const char_T *c1_identifier) |
| 14281 | { |
| 14282 | uint16_T c1_y; |
| 14283 | emlrtMsgIdentifier c1_thisId; |
| 14284 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14285 | c1_thisId.fParent = NULL; |
| 14286 | c1_thisId.bParentIsCell = false; |
| 14287 | c1_y = c1_h_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_stateFb), |
| 14288 | &c1_thisId); |
| 14289 | sf_mex_destroy(&c1_b_stateFb); |
| 14290 | return c1_y; |
| 14291 | } |
| 14292 | |
| 14293 | static uint16_T c1_h_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14294 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14295 | { |
| 14296 | uint16_T c1_y; |
| 14297 | uint16_T c1_u27; |
| 14298 | (void)chartInstance; |
| 14299 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_u27, 1, 5, 0U, 0, 0U, 0); |
| 14300 | c1_y = c1_u27; |
| 14301 | sf_mex_destroy(&c1_u); |
| 14302 | return c1_y; |
| 14303 | } |
| 14304 | |
| 14305 | static void c1_d_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14306 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14307 | { |
| 14308 | const mxArray *c1_b_stateFb; |
| 14309 | const char_T *c1_identifier; |
| 14310 | emlrtMsgIdentifier c1_thisId; |
| 14311 | uint16_T c1_y; |
| 14312 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14313 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14314 | c1_b_stateFb = sf_mex_dup(c1_mxArrayInData); |
| 14315 | c1_identifier = c1_varName; |
| 14316 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14317 | c1_thisId.fParent = NULL; |
| 14318 | c1_thisId.bParentIsCell = false; |
| 14319 | c1_y = c1_h_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_stateFb), |
| 14320 | &c1_thisId); |
| 14321 | sf_mex_destroy(&c1_b_stateFb); |
| 14322 | *(uint16_T *)c1_outData = c1_y; |
| 14323 | sf_mex_destroy(&c1_mxArrayInData); |
| 14324 | } |
| 14325 | |
| 14326 | static const mxArray *c1_f_sf_marshallOut(void *chartInstanceVoid, void |
| 14327 | *c1_inData) |
| 14328 | { |
| 14329 | const mxArray *c1_mxArrayOutData; |
| 14330 | int32_T c1_i89; |
| 14331 | const mxArray *c1_y = NULL; |
| 14332 | int32_T c1_u[16]; |
| 14333 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14334 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14335 | c1_mxArrayOutData = NULL; |
| 14336 | c1_mxArrayOutData = NULL; |
| 14337 | for (c1_i89 = 0; c1_i89 < 16; c1_i89++) { |
| 14338 | c1_u[c1_i89] = (*(int32_T (*)[16])c1_inData)[c1_i89]; |
| 14339 | } |
| 14340 | |
| 14341 | c1_y = NULL; |
| 14342 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 6, 0U, 1U, 0U, 2, 1, 16), false); |
| 14343 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14344 | return c1_mxArrayOutData; |
| 14345 | } |
| 14346 | |
| 14347 | static const mxArray *c1_g_sf_marshallOut(void *chartInstanceVoid, void |
| 14348 | *c1_inData) |
| 14349 | { |
| 14350 | const mxArray *c1_mxArrayOutData; |
| 14351 | int32_T c1_i90; |
| 14352 | const mxArray *c1_y = NULL; |
| 14353 | int32_T c1_u[24]; |
| 14354 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14355 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14356 | c1_mxArrayOutData = NULL; |
| 14357 | c1_mxArrayOutData = NULL; |
| 14358 | for (c1_i90 = 0; c1_i90 < 24; c1_i90++) { |
| 14359 | c1_u[c1_i90] = (*(int32_T (*)[24])c1_inData)[c1_i90]; |
| 14360 | } |
| 14361 | |
| 14362 | c1_y = NULL; |
| 14363 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 6, 0U, 1U, 0U, 2, 1, 24), false); |
| 14364 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14365 | return c1_mxArrayOutData; |
| 14366 | } |
| 14367 | |
| 14368 | static const mxArray *c1_h_sf_marshallOut(void *chartInstanceVoid, void |
| 14369 | *c1_inData) |
| 14370 | { |
| 14371 | const mxArray *c1_mxArrayOutData; |
| 14372 | int32_T c1_i91; |
| 14373 | const mxArray *c1_y = NULL; |
| 14374 | int32_T c1_u[8]; |
| 14375 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14376 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14377 | c1_mxArrayOutData = NULL; |
| 14378 | c1_mxArrayOutData = NULL; |
| 14379 | for (c1_i91 = 0; c1_i91 < 8; c1_i91++) { |
| 14380 | c1_u[c1_i91] = (*(int32_T (*)[8])c1_inData)[c1_i91]; |
| 14381 | } |
| 14382 | |
| 14383 | c1_y = NULL; |
| 14384 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 6, 0U, 1U, 0U, 2, 1, 8), false); |
| 14385 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14386 | return c1_mxArrayOutData; |
| 14387 | } |
| 14388 | |
| 14389 | static const mxArray *c1_i_sf_marshallOut(void *chartInstanceVoid, void |
| 14390 | *c1_inData) |
| 14391 | { |
| 14392 | const mxArray *c1_mxArrayOutData; |
| 14393 | int32_T c1_i92; |
| 14394 | const mxArray *c1_y = NULL; |
| 14395 | uint32_T c1_u[2]; |
| 14396 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14397 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14398 | c1_mxArrayOutData = NULL; |
| 14399 | c1_mxArrayOutData = NULL; |
| 14400 | for (c1_i92 = 0; c1_i92 < 2; c1_i92++) { |
| 14401 | c1_u[c1_i92] = (*(uint32_T (*)[2])c1_inData)[c1_i92]; |
| 14402 | } |
| 14403 | |
| 14404 | c1_y = NULL; |
| 14405 | sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 7, 0U, 1U, 0U, 1, 2), false); |
| 14406 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14407 | return c1_mxArrayOutData; |
| 14408 | } |
| 14409 | |
| 14410 | static const mxArray *c1_j_sf_marshallOut(void *chartInstanceVoid, void |
| 14411 | *c1_inData) |
| 14412 | { |
| 14413 | const mxArray *c1_mxArrayOutData; |
| 14414 | uint32_T c1_u; |
| 14415 | const mxArray *c1_y = NULL; |
| 14416 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14417 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14418 | c1_mxArrayOutData = NULL; |
| 14419 | c1_mxArrayOutData = NULL; |
| 14420 | c1_u = *(uint32_T *)c1_inData; |
| 14421 | c1_y = NULL; |
| 14422 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 7, 0U, 0U, 0U, 0), false); |
| 14423 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14424 | return c1_mxArrayOutData; |
| 14425 | } |
| 14426 | |
| 14427 | static uint32_T c1_i_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14428 | *chartInstance, const mxArray *c1_b_pidCounter, const char_T *c1_identifier) |
| 14429 | { |
| 14430 | uint32_T c1_y; |
| 14431 | emlrtMsgIdentifier c1_thisId; |
| 14432 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14433 | c1_thisId.fParent = NULL; |
| 14434 | c1_thisId.bParentIsCell = false; |
| 14435 | c1_y = c1_j_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_pidCounter), |
| 14436 | &c1_thisId); |
| 14437 | sf_mex_destroy(&c1_b_pidCounter); |
| 14438 | return c1_y; |
| 14439 | } |
| 14440 | |
| 14441 | static uint32_T c1_j_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14442 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14443 | { |
| 14444 | uint32_T c1_y; |
| 14445 | uint32_T c1_u28; |
| 14446 | (void)chartInstance; |
| 14447 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_u28, 1, 7, 0U, 0, 0U, 0); |
| 14448 | c1_y = c1_u28; |
| 14449 | sf_mex_destroy(&c1_u); |
| 14450 | return c1_y; |
| 14451 | } |
| 14452 | |
| 14453 | static void c1_e_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14454 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14455 | { |
| 14456 | const mxArray *c1_b_pidCounter; |
| 14457 | const char_T *c1_identifier; |
| 14458 | emlrtMsgIdentifier c1_thisId; |
| 14459 | uint32_T c1_y; |
| 14460 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14461 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14462 | c1_b_pidCounter = sf_mex_dup(c1_mxArrayInData); |
| 14463 | c1_identifier = c1_varName; |
| 14464 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14465 | c1_thisId.fParent = NULL; |
| 14466 | c1_thisId.bParentIsCell = false; |
| 14467 | c1_y = c1_j_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_pidCounter), |
| 14468 | &c1_thisId); |
| 14469 | sf_mex_destroy(&c1_b_pidCounter); |
| 14470 | *(uint32_T *)c1_outData = c1_y; |
| 14471 | sf_mex_destroy(&c1_mxArrayInData); |
| 14472 | } |
| 14473 | |
| 14474 | static const mxArray *c1_k_sf_marshallOut(void *chartInstanceVoid, void |
| 14475 | *c1_inData) |
| 14476 | { |
| 14477 | const mxArray *c1_mxArrayOutData; |
| 14478 | real_T c1_u; |
| 14479 | const mxArray *c1_y = NULL; |
| 14480 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14481 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14482 | c1_mxArrayOutData = NULL; |
| 14483 | c1_mxArrayOutData = NULL; |
| 14484 | c1_u = *(real_T *)c1_inData; |
| 14485 | c1_y = NULL; |
| 14486 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 0, 0U, 0U, 0U, 0), false); |
| 14487 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14488 | return c1_mxArrayOutData; |
| 14489 | } |
| 14490 | |
| 14491 | static void c1_k_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14492 | *chartInstance, const mxArray *c1_b_lastTryShift, const char_T *c1_identifier, |
| 14493 | uint16_T c1_y[2]) |
| 14494 | { |
| 14495 | emlrtMsgIdentifier c1_thisId; |
| 14496 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14497 | c1_thisId.fParent = NULL; |
| 14498 | c1_thisId.bParentIsCell = false; |
| 14499 | c1_l_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_lastTryShift), &c1_thisId, |
| 14500 | c1_y); |
| 14501 | sf_mex_destroy(&c1_b_lastTryShift); |
| 14502 | } |
| 14503 | |
| 14504 | static void c1_l_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14505 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, |
| 14506 | uint16_T c1_y[2]) |
| 14507 | { |
| 14508 | uint16_T c1_uv1[2]; |
| 14509 | int32_T c1_i93; |
| 14510 | (void)chartInstance; |
| 14511 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_uv1, 1, 5, 0U, 1, 0U, 2, 1, 2); |
| 14512 | for (c1_i93 = 0; c1_i93 < 2; c1_i93++) { |
| 14513 | c1_y[c1_i93] = c1_uv1[c1_i93]; |
| 14514 | } |
| 14515 | |
| 14516 | sf_mex_destroy(&c1_u); |
| 14517 | } |
| 14518 | |
| 14519 | static void c1_f_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14520 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14521 | { |
| 14522 | const mxArray *c1_b_lastTryShift; |
| 14523 | const char_T *c1_identifier; |
| 14524 | emlrtMsgIdentifier c1_thisId; |
| 14525 | uint16_T c1_y[2]; |
| 14526 | int32_T c1_i94; |
| 14527 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14528 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14529 | c1_b_lastTryShift = sf_mex_dup(c1_mxArrayInData); |
| 14530 | c1_identifier = c1_varName; |
| 14531 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14532 | c1_thisId.fParent = NULL; |
| 14533 | c1_thisId.bParentIsCell = false; |
| 14534 | c1_l_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_lastTryShift), &c1_thisId, |
| 14535 | c1_y); |
| 14536 | sf_mex_destroy(&c1_b_lastTryShift); |
| 14537 | for (c1_i94 = 0; c1_i94 < 2; c1_i94++) { |
| 14538 | (*(uint16_T (*)[2])c1_outData)[c1_i94] = c1_y[c1_i94]; |
| 14539 | } |
| 14540 | |
| 14541 | sf_mex_destroy(&c1_mxArrayInData); |
| 14542 | } |
| 14543 | |
| 14544 | static real_T c1_m_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14545 | *chartInstance, const mxArray *c1_b_aac_clutchValue, const char_T |
| 14546 | *c1_identifier) |
| 14547 | { |
| 14548 | real_T c1_y; |
| 14549 | emlrtMsgIdentifier c1_thisId; |
| 14550 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14551 | c1_thisId.fParent = NULL; |
| 14552 | c1_thisId.bParentIsCell = false; |
| 14553 | c1_y = c1_n_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_aac_clutchValue), |
| 14554 | &c1_thisId); |
| 14555 | sf_mex_destroy(&c1_b_aac_clutchValue); |
| 14556 | return c1_y; |
| 14557 | } |
| 14558 | |
| 14559 | static real_T c1_n_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14560 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14561 | { |
| 14562 | real_T c1_y; |
| 14563 | real_T c1_d8; |
| 14564 | (void)chartInstance; |
| 14565 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_d8, 1, 0, 0U, 0, 0U, 0); |
| 14566 | c1_y = c1_d8; |
| 14567 | sf_mex_destroy(&c1_u); |
| 14568 | return c1_y; |
| 14569 | } |
| 14570 | |
| 14571 | static void c1_g_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14572 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14573 | { |
| 14574 | const mxArray *c1_b_aac_clutchValue; |
| 14575 | const char_T *c1_identifier; |
| 14576 | emlrtMsgIdentifier c1_thisId; |
| 14577 | real_T c1_y; |
| 14578 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14579 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14580 | c1_b_aac_clutchValue = sf_mex_dup(c1_mxArrayInData); |
| 14581 | c1_identifier = c1_varName; |
| 14582 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14583 | c1_thisId.fParent = NULL; |
| 14584 | c1_thisId.bParentIsCell = false; |
| 14585 | c1_y = c1_n_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_aac_clutchValue), |
| 14586 | &c1_thisId); |
| 14587 | sf_mex_destroy(&c1_b_aac_clutchValue); |
| 14588 | *(real_T *)c1_outData = c1_y; |
| 14589 | sf_mex_destroy(&c1_mxArrayInData); |
| 14590 | } |
| 14591 | |
| 14592 | static const mxArray *c1_l_sf_marshallOut(void *chartInstanceVoid, void |
| 14593 | *c1_inData) |
| 14594 | { |
| 14595 | const mxArray *c1_mxArrayOutData; |
| 14596 | boolean_T c1_u; |
| 14597 | const mxArray *c1_y = NULL; |
| 14598 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14599 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14600 | c1_mxArrayOutData = NULL; |
| 14601 | c1_mxArrayOutData = NULL; |
| 14602 | c1_u = *(boolean_T *)c1_inData; |
| 14603 | c1_y = NULL; |
| 14604 | sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 11, 0U, 0U, 0U, 0), false); |
| 14605 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14606 | return c1_mxArrayOutData; |
| 14607 | } |
| 14608 | |
| 14609 | static boolean_T c1_o_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14610 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14611 | { |
| 14612 | boolean_T c1_y; |
| 14613 | boolean_T c1_b0; |
| 14614 | (void)chartInstance; |
| 14615 | sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_b0, 1, 11, 0U, 0, 0U, 0); |
| 14616 | c1_y = c1_b0; |
| 14617 | sf_mex_destroy(&c1_u); |
| 14618 | return c1_y; |
| 14619 | } |
| 14620 | |
| 14621 | static void c1_h_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14622 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14623 | { |
| 14624 | const mxArray *c1_b_out; |
| 14625 | const char_T *c1_identifier; |
| 14626 | emlrtMsgIdentifier c1_thisId; |
| 14627 | boolean_T c1_y; |
| 14628 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14629 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14630 | c1_b_out = sf_mex_dup(c1_mxArrayInData); |
| 14631 | c1_identifier = c1_varName; |
| 14632 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14633 | c1_thisId.fParent = NULL; |
| 14634 | c1_thisId.bParentIsCell = false; |
| 14635 | c1_y = c1_o_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_out), &c1_thisId); |
| 14636 | sf_mex_destroy(&c1_b_out); |
| 14637 | *(boolean_T *)c1_outData = c1_y; |
| 14638 | sf_mex_destroy(&c1_mxArrayInData); |
| 14639 | } |
| 14640 | |
| 14641 | static const mxArray *c1_m_sf_marshallOut(void *chartInstanceVoid, void |
| 14642 | *c1_inData) |
| 14643 | { |
| 14644 | const mxArray *c1_mxArrayOutData; |
| 14645 | c1_acc_params c1_u; |
| 14646 | const mxArray *c1_y = NULL; |
| 14647 | int32_T c1_b_u; |
| 14648 | const mxArray *c1_b_y = NULL; |
| 14649 | const mxArray *c1_m0 = NULL; |
| 14650 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14651 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14652 | c1_mxArrayOutData = NULL; |
| 14653 | c1_mxArrayOutData = NULL; |
| 14654 | c1_u = *(c1_acc_params *)c1_inData; |
| 14655 | c1_y = NULL; |
| 14656 | sf_mex_check_enum("acc_params", 13, c1_sv0, c1_iv0); |
| 14657 | c1_b_u = (int32_T)c1_u; |
| 14658 | c1_b_y = NULL; |
| 14659 | sf_mex_assign(&c1_b_y, sf_mex_create("y", &c1_b_u, 6, 0U, 0U, 0U, 0), false); |
| 14660 | sf_mex_assign(&c1_m0, c1_b_y, false); |
| 14661 | sf_mex_assign(&c1_y, sf_mex_create_enum("acc_params", c1_m0), false); |
| 14662 | sf_mex_destroy(&c1_m0); |
| 14663 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14664 | return c1_mxArrayOutData; |
| 14665 | } |
| 14666 | |
| 14667 | static c1_acc_params c1_p_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct * |
| 14668 | chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 14669 | { |
| 14670 | c1_acc_params c1_y; |
| 14671 | (void)chartInstance; |
| 14672 | sf_mex_check_enum("acc_params", 13, c1_sv0, c1_iv0); |
| 14673 | sf_mex_check_builtin(c1_parentId, c1_u, "acc_params", 0, 0U, NULL); |
| 14674 | c1_y = (c1_acc_params)sf_mex_get_enum_element(c1_u, 0); |
| 14675 | sf_mex_destroy(&c1_u); |
| 14676 | return c1_y; |
| 14677 | } |
| 14678 | |
| 14679 | static void c1_i_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14680 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14681 | { |
| 14682 | const mxArray *c1_index; |
| 14683 | const char_T *c1_identifier; |
| 14684 | emlrtMsgIdentifier c1_thisId; |
| 14685 | c1_acc_params c1_y; |
| 14686 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14687 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14688 | c1_index = sf_mex_dup(c1_mxArrayInData); |
| 14689 | c1_identifier = c1_varName; |
| 14690 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14691 | c1_thisId.fParent = NULL; |
| 14692 | c1_thisId.bParentIsCell = false; |
| 14693 | c1_y = c1_p_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_index), &c1_thisId); |
| 14694 | sf_mex_destroy(&c1_index); |
| 14695 | *(c1_acc_params *)c1_outData = c1_y; |
| 14696 | sf_mex_destroy(&c1_mxArrayInData); |
| 14697 | } |
| 14698 | |
| 14699 | static const mxArray *c1_n_sf_marshallOut(void *chartInstanceVoid, void |
| 14700 | *c1_inData) |
| 14701 | { |
| 14702 | const mxArray *c1_mxArrayOutData; |
| 14703 | c1_autoX_params c1_u; |
| 14704 | const mxArray *c1_y = NULL; |
| 14705 | int32_T c1_b_u; |
| 14706 | const mxArray *c1_b_y = NULL; |
| 14707 | const mxArray *c1_m1 = NULL; |
| 14708 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14709 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14710 | c1_mxArrayOutData = NULL; |
| 14711 | c1_mxArrayOutData = NULL; |
| 14712 | c1_u = *(c1_autoX_params *)c1_inData; |
| 14713 | c1_y = NULL; |
| 14714 | sf_mex_check_enum("autoX_params", 13, c1_sv1, c1_iv0); |
| 14715 | c1_b_u = (int32_T)c1_u; |
| 14716 | c1_b_y = NULL; |
| 14717 | sf_mex_assign(&c1_b_y, sf_mex_create("y", &c1_b_u, 6, 0U, 0U, 0U, 0), false); |
| 14718 | sf_mex_assign(&c1_m1, c1_b_y, false); |
| 14719 | sf_mex_assign(&c1_y, sf_mex_create_enum("autoX_params", c1_m1), false); |
| 14720 | sf_mex_destroy(&c1_m1); |
| 14721 | sf_mex_assign(&c1_mxArrayOutData, c1_y, false); |
| 14722 | return c1_mxArrayOutData; |
| 14723 | } |
| 14724 | |
| 14725 | static c1_autoX_params c1_q_emlrt_marshallIn |
| 14726 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, const mxArray *c1_u, |
| 14727 | const emlrtMsgIdentifier *c1_parentId) |
| 14728 | { |
| 14729 | c1_autoX_params c1_y; |
| 14730 | (void)chartInstance; |
| 14731 | sf_mex_check_enum("autoX_params", 13, c1_sv1, c1_iv0); |
| 14732 | sf_mex_check_builtin(c1_parentId, c1_u, "autoX_params", 0, 0U, NULL); |
| 14733 | c1_y = (c1_autoX_params)sf_mex_get_enum_element(c1_u, 0); |
| 14734 | sf_mex_destroy(&c1_u); |
| 14735 | return c1_y; |
| 14736 | } |
| 14737 | |
| 14738 | static void c1_j_sf_marshallIn(void *chartInstanceVoid, const mxArray |
| 14739 | *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData) |
| 14740 | { |
| 14741 | const mxArray *c1_index; |
| 14742 | const char_T *c1_identifier; |
| 14743 | emlrtMsgIdentifier c1_thisId; |
| 14744 | c1_autoX_params c1_y; |
| 14745 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 14746 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)chartInstanceVoid; |
| 14747 | c1_index = sf_mex_dup(c1_mxArrayInData); |
| 14748 | c1_identifier = c1_varName; |
| 14749 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 14750 | c1_thisId.fParent = NULL; |
| 14751 | c1_thisId.bParentIsCell = false; |
| 14752 | c1_y = c1_q_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_index), &c1_thisId); |
| 14753 | sf_mex_destroy(&c1_index); |
| 14754 | *(c1_autoX_params *)c1_outData = c1_y; |
| 14755 | sf_mex_destroy(&c1_mxArrayInData); |
| 14756 | } |
| 14757 | |
| 14758 | static void c1_r_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 14759 | *chartInstance, const mxArray *c1_u) |
| 14760 | { |
| 14761 | uint16_T c1_uv2[2]; |
| 14762 | int32_T c1_i95; |
| 14763 | uint16_T c1_uv3[2]; |
| 14764 | int32_T c1_i96; |
| 14765 | *chartInstance->c1_antiStallEnable = c1_c_emlrt_marshallIn(chartInstance, |
| 14766 | sf_mex_dup(sf_mex_getcell(c1_u, 0)), "antiStallEnable"); |
| 14767 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 14, 1073U, (void *) |
| 14768 | chartInstance->c1_antiStallEnable); |
| 14769 | *chartInstance->c1_clutchCurrVal = c1_c_emlrt_marshallIn(chartInstance, |
| 14770 | sf_mex_dup(sf_mex_getcell(c1_u, 1)), "clutchCurrVal"); |
| 14771 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 0, 123U, (void *) |
| 14772 | chartInstance->c1_clutchCurrVal); |
| 14773 | c1_e_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 2)), |
| 14774 | "lastModeCom", c1_uv2); |
| 14775 | for (c1_i95 = 0; c1_i95 < 2; c1_i95++) { |
| 14776 | (*chartInstance->c1_lastModeCom)[c1_i95] = c1_uv2[c1_i95]; |
| 14777 | } |
| 14778 | |
| 14779 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 1, 834U, (void *) |
| 14780 | chartInstance->c1_lastModeCom); |
| 14781 | *chartInstance->c1_pidCounter = c1_i_emlrt_marshallIn(chartInstance, |
| 14782 | sf_mex_dup(sf_mex_getcell(c1_u, 3)), "pidCounter"); |
| 14783 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 25, 1839U, (void *) |
| 14784 | chartInstance->c1_pidCounter); |
| 14785 | *chartInstance->c1_rpmAccTarget = c1_g_emlrt_marshallIn(chartInstance, |
| 14786 | sf_mex_dup(sf_mex_getcell(c1_u, 4)), "rpmAccTarget"); |
| 14787 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 30, 2851U, (void *) |
| 14788 | chartInstance->c1_rpmAccTarget); |
| 14789 | *chartInstance->c1_stateFb = c1_g_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14790 | (sf_mex_getcell(c1_u, 5)), "stateFb"); |
| 14791 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 8, 833U, (void *) |
| 14792 | chartInstance->c1_stateFb); |
| 14793 | chartInstance->c1_aacCounter = c1_g_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14794 | (sf_mex_getcell(c1_u, 6)), "aacCounter"); |
| 14795 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 44, 550U, (void *) |
| 14796 | &chartInstance->c1_aacCounter); |
| 14797 | chartInstance->c1_aac_clutchStep = c1_m_emlrt_marshallIn(chartInstance, |
| 14798 | sf_mex_dup(sf_mex_getcell(c1_u, 7)), "aac_clutchStep"); |
| 14799 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 46, 563U, (void *) |
| 14800 | &chartInstance->c1_aac_clutchStep); |
| 14801 | chartInstance->c1_aac_clutchValue = c1_m_emlrt_marshallIn(chartInstance, |
| 14802 | sf_mex_dup(sf_mex_getcell(c1_u, 8)), "aac_clutchValue"); |
| 14803 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 45, 561U, (void *) |
| 14804 | &chartInstance->c1_aac_clutchValue); |
| 14805 | chartInstance->c1_aac_dtRelease = c1_emlrt_marshallIn(chartInstance, |
| 14806 | sf_mex_dup(sf_mex_getcell(c1_u, 9)), "aac_dtRelease"); |
| 14807 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 47, 564U, (void *) |
| 14808 | &chartInstance->c1_aac_dtRelease); |
| 14809 | chartInstance->c1_autoXCounter = c1_g_emlrt_marshallIn(chartInstance, |
| 14810 | sf_mex_dup(sf_mex_getcell(c1_u, 10)), "autoXCounter"); |
| 14811 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 63, 958U, (void *) |
| 14812 | &chartInstance->c1_autoXCounter); |
| 14813 | chartInstance->c1_b_autoXCounter = c1_g_emlrt_marshallIn(chartInstance, |
| 14814 | sf_mex_dup(sf_mex_getcell(c1_u, 11)), "autoXCounter"); |
| 14815 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 70, 2170U, (void *) |
| 14816 | &chartInstance->c1_b_autoXCounter); |
| 14817 | chartInstance->c1_autoX_clutchStep = c1_m_emlrt_marshallIn(chartInstance, |
| 14818 | sf_mex_dup(sf_mex_getcell(c1_u, 12)), "autoX_clutchStep"); |
| 14819 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 65, 960U, (void *) |
| 14820 | &chartInstance->c1_autoX_clutchStep); |
| 14821 | chartInstance->c1_b_autoX_clutchStep = c1_m_emlrt_marshallIn(chartInstance, |
| 14822 | sf_mex_dup(sf_mex_getcell(c1_u, 13)), "autoX_clutchStep"); |
| 14823 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 72, 2172U, (void *) |
| 14824 | &chartInstance->c1_b_autoX_clutchStep); |
| 14825 | chartInstance->c1_autoX_clutchValue = c1_m_emlrt_marshallIn(chartInstance, |
| 14826 | sf_mex_dup(sf_mex_getcell(c1_u, 14)), "autoX_clutchValue"); |
| 14827 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 64, 959U, (void *) |
| 14828 | &chartInstance->c1_autoX_clutchValue); |
| 14829 | chartInstance->c1_b_autoX_clutchValue = c1_m_emlrt_marshallIn(chartInstance, |
| 14830 | sf_mex_dup(sf_mex_getcell(c1_u, 15)), "autoX_clutchValue"); |
| 14831 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 71, 2171U, (void *) |
| 14832 | &chartInstance->c1_b_autoX_clutchValue); |
| 14833 | chartInstance->c1_autoX_dtRelease = c1_emlrt_marshallIn(chartInstance, |
| 14834 | sf_mex_dup(sf_mex_getcell(c1_u, 16)), "autoX_dtRelease"); |
| 14835 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 66, 961U, (void *) |
| 14836 | &chartInstance->c1_autoX_dtRelease); |
| 14837 | chartInstance->c1_b_autoX_dtRelease = c1_emlrt_marshallIn(chartInstance, |
| 14838 | sf_mex_dup(sf_mex_getcell(c1_u, 17)), "autoX_dtRelease"); |
| 14839 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 73, 2173U, (void *) |
| 14840 | &chartInstance->c1_b_autoX_dtRelease); |
| 14841 | chartInstance->c1_buzzerCounter = c1_g_emlrt_marshallIn(chartInstance, |
| 14842 | sf_mex_dup(sf_mex_getcell(c1_u, 18)), "buzzerCounter"); |
| 14843 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 34, 1063U, (void *) |
| 14844 | &chartInstance->c1_buzzerCounter); |
| 14845 | chartInstance->c1_counterWait = c1_m_emlrt_marshallIn(chartInstance, |
| 14846 | sf_mex_dup(sf_mex_getcell(c1_u, 19)), "counterWait"); |
| 14847 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 84, 950U, (void *) |
| 14848 | &chartInstance->c1_counterWait); |
| 14849 | chartInstance->c1_b_counterWait = c1_m_emlrt_marshallIn(chartInstance, |
| 14850 | sf_mex_dup(sf_mex_getcell(c1_u, 20)), "counterWait"); |
| 14851 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 88, 1068U, (void *) |
| 14852 | &chartInstance->c1_b_counterWait); |
| 14853 | chartInstance->c1_lastAacCom = c1_g_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14854 | (sf_mex_getcell(c1_u, 21)), "lastAacCom"); |
| 14855 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 31, 627U, (void *) |
| 14856 | &chartInstance->c1_lastAacCom); |
| 14857 | chartInstance->c1_lastAutoXCom = c1_g_emlrt_marshallIn(chartInstance, |
| 14858 | sf_mex_dup(sf_mex_getcell(c1_u, 22)), "lastAutoXCom"); |
| 14859 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 33, 1043U, (void *) |
| 14860 | &chartInstance->c1_lastAutoXCom); |
| 14861 | chartInstance->c1_lastCom = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14862 | (sf_mex_getcell(c1_u, 23)), "lastCom"); |
| 14863 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 85, 484U, (void *) |
| 14864 | &chartInstance->c1_lastCom); |
| 14865 | chartInstance->c1_lastShift = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14866 | (sf_mex_getcell(c1_u, 24)), "lastShift"); |
| 14867 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 6, 715U, (void *) |
| 14868 | &chartInstance->c1_lastShift); |
| 14869 | chartInstance->c1_lastShiftCom = c1_g_emlrt_marshallIn(chartInstance, |
| 14870 | sf_mex_dup(sf_mex_getcell(c1_u, 25)), "lastShiftCom"); |
| 14871 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 32, 681U, (void *) |
| 14872 | &chartInstance->c1_lastShiftCom); |
| 14873 | c1_k_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 26)), |
| 14874 | "lastTryShift", c1_uv3); |
| 14875 | for (c1_i96 = 0; c1_i96 < 2; c1_i96++) { |
| 14876 | chartInstance->c1_lastTryShift[c1_i96] = c1_uv3[c1_i96]; |
| 14877 | } |
| 14878 | |
| 14879 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 29, 2004U, (void *) |
| 14880 | &chartInstance->c1_lastTryShift); |
| 14881 | chartInstance->c1_startCounter = c1_c_emlrt_marshallIn(chartInstance, |
| 14882 | sf_mex_dup(sf_mex_getcell(c1_u, 27)), "startCounter"); |
| 14883 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 86, 488U, (void *) |
| 14884 | &chartInstance->c1_startCounter); |
| 14885 | chartInstance->c1_ticksCounter = c1_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14886 | (sf_mex_getcell(c1_u, 28)), "ticksCounter"); |
| 14887 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 77, 45U, (void *) |
| 14888 | &chartInstance->c1_ticksCounter); |
| 14889 | chartInstance->c1_timerCounter = c1_g_emlrt_marshallIn(chartInstance, |
| 14890 | sf_mex_dup(sf_mex_getcell(c1_u, 29)), "timerCounter"); |
| 14891 | c1_d_sdiStreamingWrapperFcn(chartInstance, 0, 87, 938U, (void *) |
| 14892 | &chartInstance->c1_timerCounter); |
| 14893 | chartInstance->c1_is_active_c1_GCU_Model_genCode = c1_c_emlrt_marshallIn |
| 14894 | (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 30)), |
| 14895 | "is_active_c1_GCU_Model_genCode"); |
| 14896 | chartInstance->c1_is_active_GEARSHIFT = c1_c_emlrt_marshallIn(chartInstance, |
| 14897 | sf_mex_dup(sf_mex_getcell(c1_u, 31)), "is_active_GEARSHIFT"); |
| 14898 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 41, 1U, (int32_T) |
| 14899 | (chartInstance->c1_is_active_GEARSHIFT == 1)); |
| 14900 | chartInstance->c1_is_active_NEUTRAL_STATE = c1_c_emlrt_marshallIn |
| 14901 | (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 32)), |
| 14902 | "is_active_NEUTRAL_STATE"); |
| 14903 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 36, 31U, (int32_T) |
| 14904 | (chartInstance->c1_is_active_NEUTRAL_STATE == 1)); |
| 14905 | chartInstance->c1_is_active_MODES = c1_c_emlrt_marshallIn(chartInstance, |
| 14906 | sf_mex_dup(sf_mex_getcell(c1_u, 33)), "is_active_MODES"); |
| 14907 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 1, 418U, (int32_T) |
| 14908 | (chartInstance->c1_is_active_MODES == 1)); |
| 14909 | chartInstance->c1_is_active_START_ENGINE = c1_c_emlrt_marshallIn(chartInstance, |
| 14910 | sf_mex_dup(sf_mex_getcell(c1_u, 34)), "is_active_START_ENGINE"); |
| 14911 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 67, 479U, (int32_T) |
| 14912 | (chartInstance->c1_is_active_START_ENGINE == 1)); |
| 14913 | chartInstance->c1_is_active_SCAN_ADC = c1_c_emlrt_marshallIn(chartInstance, |
| 14914 | sf_mex_dup(sf_mex_getcell(c1_u, 35)), "is_active_SCAN_ADC"); |
| 14915 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 71, 929U, (int32_T) |
| 14916 | (chartInstance->c1_is_active_SCAN_ADC == 1)); |
| 14917 | chartInstance->c1_is_active_EEPROM_TRIGGER = c1_c_emlrt_marshallIn |
| 14918 | (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 36)), |
| 14919 | "is_active_EEPROM_TRIGGER"); |
| 14920 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 73, 940U, (int32_T) |
| 14921 | (chartInstance->c1_is_active_EEPROM_TRIGGER == 1)); |
| 14922 | chartInstance->c1_is_active_ANTISTALL_ENABLE = c1_c_emlrt_marshallIn |
| 14923 | (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 37)), |
| 14924 | "is_active_ANTISTALL_ENABLE"); |
| 14925 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 76, 1069U, (int32_T) |
| 14926 | (chartInstance->c1_is_active_ANTISTALL_ENABLE == 1)); |
| 14927 | chartInstance->c1_is_GEARSHIFT = c1_c_emlrt_marshallIn(chartInstance, |
| 14928 | sf_mex_dup(sf_mex_getcell(c1_u, 38)), "is_GEARSHIFT"); |
| 14929 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 41, 1U, (void *) |
| 14930 | &chartInstance->c1_is_GEARSHIFT); |
| 14931 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 42, 697U, (int32_T) |
| 14932 | (chartInstance->c1_is_GEARSHIFT == 1)); |
| 14933 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 52, 18U, (int32_T) |
| 14934 | (chartInstance->c1_is_GEARSHIFT == 2)); |
| 14935 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 53, 5U, (int32_T) |
| 14936 | (chartInstance->c1_is_GEARSHIFT == 3)); |
| 14937 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 54, 7U, (int32_T) |
| 14938 | (chartInstance->c1_is_GEARSHIFT == 4)); |
| 14939 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 55, 693U, (int32_T) |
| 14940 | (chartInstance->c1_is_GEARSHIFT == 5)); |
| 14941 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 66, 13U, (int32_T) |
| 14942 | (chartInstance->c1_is_GEARSHIFT == 6)); |
| 14943 | chartInstance->c1_is_UP_START = c1_c_emlrt_marshallIn(chartInstance, |
| 14944 | sf_mex_dup(sf_mex_getcell(c1_u, 39)), "is_UP_START"); |
| 14945 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 63, 9U, (void *) |
| 14946 | &chartInstance->c1_is_UP_START); |
| 14947 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 64, 385U, (int32_T) |
| 14948 | (chartInstance->c1_is_UP_START == 1)); |
| 14949 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 65, 383U, (int32_T) |
| 14950 | (chartInstance->c1_is_UP_START == 2)); |
| 14951 | chartInstance->c1_is_UP_PUSH = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14952 | (sf_mex_getcell(c1_u, 40)), "is_UP_PUSH"); |
| 14953 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 57, 10U, (void *) |
| 14954 | &chartInstance->c1_is_UP_PUSH); |
| 14955 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 58, 423U, (int32_T) |
| 14956 | (chartInstance->c1_is_UP_PUSH == 1)); |
| 14957 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 59, 422U, (int32_T) |
| 14958 | (chartInstance->c1_is_UP_PUSH == 2)); |
| 14959 | chartInstance->c1_is_UP_REBOUND = c1_c_emlrt_marshallIn(chartInstance, |
| 14960 | sf_mex_dup(sf_mex_getcell(c1_u, 41)), "is_UP_REBOUND"); |
| 14961 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 60, 11U, (void *) |
| 14962 | &chartInstance->c1_is_UP_REBOUND); |
| 14963 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 61, 390U, (int32_T) |
| 14964 | (chartInstance->c1_is_UP_REBOUND == 1)); |
| 14965 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 62, 391U, (int32_T) |
| 14966 | (chartInstance->c1_is_UP_REBOUND == 2)); |
| 14967 | chartInstance->c1_is_DOWN_START = c1_c_emlrt_marshallIn(chartInstance, |
| 14968 | sf_mex_dup(sf_mex_getcell(c1_u, 42)), "is_DOWN_START"); |
| 14969 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 48, 14U, (void *) |
| 14970 | &chartInstance->c1_is_DOWN_START); |
| 14971 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 49, 2037U, (int32_T) |
| 14972 | (chartInstance->c1_is_DOWN_START == 1)); |
| 14973 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 50, 406U, (int32_T) |
| 14974 | (chartInstance->c1_is_DOWN_START == 2)); |
| 14975 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 51, 399U, (int32_T) |
| 14976 | (chartInstance->c1_is_DOWN_START == 3)); |
| 14977 | chartInstance->c1_is_DOWN_BRAKE = c1_c_emlrt_marshallIn(chartInstance, |
| 14978 | sf_mex_dup(sf_mex_getcell(c1_u, 43)), "is_DOWN_BRAKE"); |
| 14979 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 43, 17U, (void *) |
| 14980 | &chartInstance->c1_is_DOWN_BRAKE); |
| 14981 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 44, 410U, (int32_T) |
| 14982 | (chartInstance->c1_is_DOWN_BRAKE == 1)); |
| 14983 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 45, 409U, (int32_T) |
| 14984 | (chartInstance->c1_is_DOWN_BRAKE == 2)); |
| 14985 | chartInstance->c1_is_NEUTRAL_STATE = c1_c_emlrt_marshallIn(chartInstance, |
| 14986 | sf_mex_dup(sf_mex_getcell(c1_u, 44)), "is_NEUTRAL_STATE"); |
| 14987 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 36, 31U, (void *) |
| 14988 | &chartInstance->c1_is_NEUTRAL_STATE); |
| 14989 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 37, 36U, (int32_T) |
| 14990 | (chartInstance->c1_is_NEUTRAL_STATE == 1)); |
| 14991 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 38, 32U, (int32_T) |
| 14992 | (chartInstance->c1_is_NEUTRAL_STATE == 2)); |
| 14993 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 39, 34U, (int32_T) |
| 14994 | (chartInstance->c1_is_NEUTRAL_STATE == 3)); |
| 14995 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 40, 35U, (int32_T) |
| 14996 | (chartInstance->c1_is_NEUTRAL_STATE == 4)); |
| 14997 | chartInstance->c1_is_MODES = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 14998 | (sf_mex_getcell(c1_u, 45)), "is_MODES"); |
| 14999 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 1, 418U, (void *) |
| 15000 | &chartInstance->c1_is_MODES); |
| 15001 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 2, 820U, (int32_T) |
| 15002 | (chartInstance->c1_is_MODES == 1)); |
| 15003 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 12, 1157U, (int32_T) |
| 15004 | (chartInstance->c1_is_MODES == 2)); |
| 15005 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 22, 951U, (int32_T) |
| 15006 | (chartInstance->c1_is_MODES == 3)); |
| 15007 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 32, 429U, (int32_T) |
| 15008 | (chartInstance->c1_is_MODES == 4)); |
| 15009 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 33, 727U, (int32_T) |
| 15010 | (chartInstance->c1_is_MODES == 5)); |
| 15011 | chartInstance->c1_is_ACC = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 15012 | (sf_mex_getcell(c1_u, 46)), "is_ACC"); |
| 15013 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 3, 434U, (void *) |
| 15014 | &chartInstance->c1_is_ACC); |
| 15015 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 4, 538U, (int32_T) |
| 15016 | (chartInstance->c1_is_ACC == 1)); |
| 15017 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 10, 515U, (int32_T) |
| 15018 | (chartInstance->c1_is_ACC == 2)); |
| 15019 | chartInstance->c1_is_START_ENGINE = c1_c_emlrt_marshallIn(chartInstance, |
| 15020 | sf_mex_dup(sf_mex_getcell(c1_u, 47)), "is_START_ENGINE"); |
| 15021 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 67, 479U, (void *) |
| 15022 | &chartInstance->c1_is_START_ENGINE); |
| 15023 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 68, 482U, (int32_T) |
| 15024 | (chartInstance->c1_is_START_ENGINE == 1)); |
| 15025 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 69, 483U, (int32_T) |
| 15026 | (chartInstance->c1_is_START_ENGINE == 2)); |
| 15027 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 70, 494U, (int32_T) |
| 15028 | (chartInstance->c1_is_START_ENGINE == 3)); |
| 15029 | chartInstance->c1_is_ACTIVE = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 15030 | (sf_mex_getcell(c1_u, 48)), "is_ACTIVE"); |
| 15031 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 4, 538U, (void *) |
| 15032 | &chartInstance->c1_is_ACTIVE); |
| 15033 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 5, 545U, (int32_T) |
| 15034 | (chartInstance->c1_is_ACTIVE == 1)); |
| 15035 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 6, 544U, (int32_T) |
| 15036 | (chartInstance->c1_is_ACTIVE == 2)); |
| 15037 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 7, 514U, (int32_T) |
| 15038 | (chartInstance->c1_is_ACTIVE == 3)); |
| 15039 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 8, 543U, (int32_T) |
| 15040 | (chartInstance->c1_is_ACTIVE == 4)); |
| 15041 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 9, 547U, (int32_T) |
| 15042 | (chartInstance->c1_is_ACTIVE == 5)); |
| 15043 | chartInstance->c1_is_UPSHIFTING = c1_c_emlrt_marshallIn(chartInstance, |
| 15044 | sf_mex_dup(sf_mex_getcell(c1_u, 49)), "is_UPSHIFTING"); |
| 15045 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 55, 693U, (void *) |
| 15046 | &chartInstance->c1_is_UPSHIFTING); |
| 15047 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 56, 12U, (int32_T) |
| 15048 | (chartInstance->c1_is_UPSHIFTING == 1)); |
| 15049 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 57, 10U, (int32_T) |
| 15050 | (chartInstance->c1_is_UPSHIFTING == 2)); |
| 15051 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 60, 11U, (int32_T) |
| 15052 | (chartInstance->c1_is_UPSHIFTING == 3)); |
| 15053 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 63, 9U, (int32_T) |
| 15054 | (chartInstance->c1_is_UPSHIFTING == 4)); |
| 15055 | chartInstance->c1_is_DOWNSHIFTING = c1_c_emlrt_marshallIn(chartInstance, |
| 15056 | sf_mex_dup(sf_mex_getcell(c1_u, 50)), "is_DOWNSHIFTING"); |
| 15057 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 42, 697U, (void *) |
| 15058 | &chartInstance->c1_is_DOWNSHIFTING); |
| 15059 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 43, 17U, (int32_T) |
| 15060 | (chartInstance->c1_is_DOWNSHIFTING == 1)); |
| 15061 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 46, 15U, (int32_T) |
| 15062 | (chartInstance->c1_is_DOWNSHIFTING == 2)); |
| 15063 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 47, 16U, (int32_T) |
| 15064 | (chartInstance->c1_is_DOWNSHIFTING == 3)); |
| 15065 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 48, 14U, (int32_T) |
| 15066 | (chartInstance->c1_is_DOWNSHIFTING == 4)); |
| 15067 | chartInstance->c1_is_MANUAL_MODES = c1_c_emlrt_marshallIn(chartInstance, |
| 15068 | sf_mex_dup(sf_mex_getcell(c1_u, 51)), "is_MANUAL_MODES"); |
| 15069 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 33, 727U, (void *) |
| 15070 | &chartInstance->c1_is_MANUAL_MODES); |
| 15071 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 34, 729U, (int32_T) |
| 15072 | (chartInstance->c1_is_MANUAL_MODES == 1)); |
| 15073 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 35, 728U, (int32_T) |
| 15074 | (chartInstance->c1_is_MANUAL_MODES == 2)); |
| 15075 | chartInstance->c1_is_ACCELERATION = c1_c_emlrt_marshallIn(chartInstance, |
| 15076 | sf_mex_dup(sf_mex_getcell(c1_u, 52)), "is_ACCELERATION"); |
| 15077 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 2, 820U, (void *) |
| 15078 | &chartInstance->c1_is_ACCELERATION); |
| 15079 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 3, 434U, (int32_T) |
| 15080 | (chartInstance->c1_is_ACCELERATION == 1)); |
| 15081 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 11, 821U, (int32_T) |
| 15082 | (chartInstance->c1_is_ACCELERATION == 2)); |
| 15083 | chartInstance->c1_is_SCAN_ADC = c1_c_emlrt_marshallIn(chartInstance, |
| 15084 | sf_mex_dup(sf_mex_getcell(c1_u, 53)), "is_SCAN_ADC"); |
| 15085 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 71, 929U, (void *) |
| 15086 | &chartInstance->c1_is_SCAN_ADC); |
| 15087 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 72, 932U, (int32_T) |
| 15088 | (chartInstance->c1_is_SCAN_ADC == 1)); |
| 15089 | chartInstance->c1_is_EEPROM_TRIGGER = c1_c_emlrt_marshallIn(chartInstance, |
| 15090 | sf_mex_dup(sf_mex_getcell(c1_u, 54)), "is_EEPROM_TRIGGER"); |
| 15091 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 73, 940U, (void *) |
| 15092 | &chartInstance->c1_is_EEPROM_TRIGGER); |
| 15093 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 74, 946U, (int32_T) |
| 15094 | (chartInstance->c1_is_EEPROM_TRIGGER == 1)); |
| 15095 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 75, 944U, (int32_T) |
| 15096 | (chartInstance->c1_is_EEPROM_TRIGGER == 2)); |
| 15097 | chartInstance->c1_is_AUTOCROSS = c1_c_emlrt_marshallIn(chartInstance, |
| 15098 | sf_mex_dup(sf_mex_getcell(c1_u, 55)), "is_AUTOCROSS"); |
| 15099 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 22, 951U, (void *) |
| 15100 | &chartInstance->c1_is_AUTOCROSS); |
| 15101 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 23, 952U, (int32_T) |
| 15102 | (chartInstance->c1_is_AUTOCROSS == 1)); |
| 15103 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 24, 974U, (int32_T) |
| 15104 | (chartInstance->c1_is_AUTOCROSS == 2)); |
| 15105 | chartInstance->c1_is_LAUNCH = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 15106 | (sf_mex_getcell(c1_u, 56)), "is_LAUNCH"); |
| 15107 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 24, 974U, (void *) |
| 15108 | &chartInstance->c1_is_LAUNCH); |
| 15109 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 25, 985U, (int32_T) |
| 15110 | (chartInstance->c1_is_LAUNCH == 1)); |
| 15111 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 31, 1028U, (int32_T) |
| 15112 | (chartInstance->c1_is_LAUNCH == 2)); |
| 15113 | chartInstance->c1_b_is_ACTIVE = c1_c_emlrt_marshallIn(chartInstance, |
| 15114 | sf_mex_dup(sf_mex_getcell(c1_u, 57)), "is_ACTIVE"); |
| 15115 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 25, 985U, (void *) |
| 15116 | &chartInstance->c1_b_is_ACTIVE); |
| 15117 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 26, 999U, (int32_T) |
| 15118 | (chartInstance->c1_b_is_ACTIVE == 1)); |
| 15119 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 27, 1025U, (int32_T) |
| 15120 | (chartInstance->c1_b_is_ACTIVE == 2)); |
| 15121 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 28, 1002U, (int32_T) |
| 15122 | (chartInstance->c1_b_is_ACTIVE == 3)); |
| 15123 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 29, 998U, (int32_T) |
| 15124 | (chartInstance->c1_b_is_ACTIVE == 4)); |
| 15125 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 30, 1001U, (int32_T) |
| 15126 | (chartInstance->c1_b_is_ACTIVE == 5)); |
| 15127 | chartInstance->c1_is_ANTISTALL_ENABLE = c1_c_emlrt_marshallIn(chartInstance, |
| 15128 | sf_mex_dup(sf_mex_getcell(c1_u, 58)), "is_ANTISTALL_ENABLE"); |
| 15129 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 76, 1069U, (void *) |
| 15130 | &chartInstance->c1_is_ANTISTALL_ENABLE); |
| 15131 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 77, 1070U, (int32_T) |
| 15132 | (chartInstance->c1_is_ANTISTALL_ENABLE == 1)); |
| 15133 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 78, 1072U, (int32_T) |
| 15134 | (chartInstance->c1_is_ANTISTALL_ENABLE == 2)); |
| 15135 | chartInstance->c1_is_ACCELERATION_PID = c1_c_emlrt_marshallIn(chartInstance, |
| 15136 | sf_mex_dup(sf_mex_getcell(c1_u, 59)), "is_ACCELERATION_PID"); |
| 15137 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 12, 1157U, (void *) |
| 15138 | &chartInstance->c1_is_ACCELERATION_PID); |
| 15139 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 13, 1091U, (int32_T) |
| 15140 | (chartInstance->c1_is_ACCELERATION_PID == 1)); |
| 15141 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 14, 2174U, (int32_T) |
| 15142 | (chartInstance->c1_is_ACCELERATION_PID == 2)); |
| 15143 | chartInstance->c1_is_LAUNCH0 = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 15144 | (sf_mex_getcell(c1_u, 60)), "is_LAUNCH0"); |
| 15145 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 14, 2174U, (void *) |
| 15146 | &chartInstance->c1_is_LAUNCH0); |
| 15147 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 15, 2182U, (int32_T) |
| 15148 | (chartInstance->c1_is_LAUNCH0 == 1)); |
| 15149 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 21, 2223U, (int32_T) |
| 15150 | (chartInstance->c1_is_LAUNCH0 == 2)); |
| 15151 | chartInstance->c1_c_is_ACTIVE = c1_c_emlrt_marshallIn(chartInstance, |
| 15152 | sf_mex_dup(sf_mex_getcell(c1_u, 61)), "is_ACTIVE"); |
| 15153 | c1_b_sdiStreamingWrapperFcn(chartInstance, 1, 15, 2182U, (void *) |
| 15154 | &chartInstance->c1_c_is_ACTIVE); |
| 15155 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 16, 2192U, (int32_T) |
| 15156 | (chartInstance->c1_c_is_ACTIVE == 1)); |
| 15157 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 17, 2238U, (int32_T) |
| 15158 | (chartInstance->c1_c_is_ACTIVE == 2)); |
| 15159 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 18, 2848U, (int32_T) |
| 15160 | (chartInstance->c1_c_is_ACTIVE == 3)); |
| 15161 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 19, 2193U, (int32_T) |
| 15162 | (chartInstance->c1_c_is_ACTIVE == 4)); |
| 15163 | c1_sdiStreamingWrapperFcn(chartInstance, 4, 20, 2191U, (int32_T) |
| 15164 | (chartInstance->c1_c_is_ACTIVE == 5)); |
| 15165 | sf_mex_assign(&chartInstance->c1_setSimStateSideEffectsInfo, |
| 15166 | c1_s_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell |
| 15167 | (c1_u, 62)), "setSimStateSideEffectsInfo"), true); |
| 15168 | sf_mex_destroy(&c1_u); |
| 15169 | } |
| 15170 | |
| 15171 | static const mxArray *c1_s_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15172 | *chartInstance, const mxArray *c1_b_setSimStateSideEffectsInfo, const char_T |
| 15173 | *c1_identifier) |
| 15174 | { |
| 15175 | const mxArray *c1_y = NULL; |
| 15176 | emlrtMsgIdentifier c1_thisId; |
| 15177 | c1_y = NULL; |
| 15178 | c1_thisId.fIdentifier = (const char *)c1_identifier; |
| 15179 | c1_thisId.fParent = NULL; |
| 15180 | c1_thisId.bParentIsCell = false; |
| 15181 | sf_mex_assign(&c1_y, c1_t_emlrt_marshallIn(chartInstance, sf_mex_dup |
| 15182 | (c1_b_setSimStateSideEffectsInfo), &c1_thisId), false); |
| 15183 | sf_mex_destroy(&c1_b_setSimStateSideEffectsInfo); |
| 15184 | return c1_y; |
| 15185 | } |
| 15186 | |
| 15187 | static const mxArray *c1_t_emlrt_marshallIn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15188 | *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId) |
| 15189 | { |
| 15190 | const mxArray *c1_y = NULL; |
| 15191 | (void)chartInstance; |
| 15192 | (void)c1_parentId; |
| 15193 | c1_y = NULL; |
| 15194 | sf_mex_assign(&c1_y, sf_mex_duplicatearraysafe(&c1_u), false); |
| 15195 | sf_mex_destroy(&c1_u); |
| 15196 | return c1_y; |
| 15197 | } |
| 15198 | |
| 15199 | static const mxArray *sf_get_hover_data_for_msg |
| 15200 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, int32_T c1_ssid) |
| 15201 | { |
| 15202 | (void)chartInstance; |
| 15203 | (void)c1_ssid; |
| 15204 | return NULL; |
| 15205 | } |
| 15206 | |
| 15207 | static void c1_init_sf_message_store_memory(SFc1_GCU_Model_genCodeInstanceStruct |
| 15208 | *chartInstance) |
| 15209 | { |
| 15210 | (void)chartInstance; |
| 15211 | } |
| 15212 | |
| 15213 | static int32_T c1_div_nzp_s32(SFc1_GCU_Model_genCodeInstanceStruct |
| 15214 | *chartInstance, int32_T c1_numerator, int32_T c1_denominator, uint32_T |
| 15215 | c1_ssid_src_loc, int32_T c1_offset_src_loc, int32_T c1_length_src_loc) |
| 15216 | { |
| 15217 | int32_T c1_quotient; |
| 15218 | uint32_T c1_absNumerator; |
| 15219 | uint32_T c1_absDenominator; |
| 15220 | boolean_T c1_quotientNeedsNegation; |
| 15221 | uint32_T c1_tempAbsQuotient; |
| 15222 | (void)chartInstance; |
| 15223 | (void)c1_ssid_src_loc; |
| 15224 | (void)c1_offset_src_loc; |
| 15225 | (void)c1_length_src_loc; |
| 15226 | if (c1_numerator < 0) { |
| 15227 | c1_absNumerator = ~(uint32_T)c1_numerator + 1U; |
| 15228 | } else { |
| 15229 | c1_absNumerator = (uint32_T)c1_numerator; |
| 15230 | } |
| 15231 | |
| 15232 | if (c1_denominator < 0) { |
| 15233 | c1_absDenominator = ~(uint32_T)c1_denominator + 1U; |
| 15234 | } else { |
| 15235 | c1_absDenominator = (uint32_T)c1_denominator; |
| 15236 | } |
| 15237 | |
| 15238 | c1_quotientNeedsNegation = ((c1_numerator < 0) != (c1_denominator < 0)); |
| 15239 | c1_tempAbsQuotient = c1_absNumerator / c1_absDenominator; |
| 15240 | if (c1_quotientNeedsNegation) { |
| 15241 | c1_quotient = -(int32_T)c1_tempAbsQuotient; |
| 15242 | } else { |
| 15243 | c1_quotient = (int32_T)c1_tempAbsQuotient; |
| 15244 | } |
| 15245 | |
| 15246 | return c1_quotient; |
| 15247 | } |
| 15248 | |
| 15249 | static int32_T c1__s32_add__(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, |
| 15250 | int32_T c1_b, int32_T c1_c, uint32_T c1_ssid_src_loc, int32_T |
| 15251 | c1_offset_src_loc, int32_T c1_length_src_loc) |
| 15252 | { |
| 15253 | int32_T c1_a; |
| 15254 | (void)chartInstance; |
| 15255 | c1_a = c1_b + c1_c; |
| 15256 | if (((c1_a ^ c1_b) & (c1_a ^ c1_c)) < 0) { |
| 15257 | _SFD_OVERFLOW_DETECTION(SFDB_OVERFLOW, c1_ssid_src_loc, c1_offset_src_loc, |
| 15258 | c1_length_src_loc); |
| 15259 | } |
| 15260 | |
| 15261 | return c1_a; |
| 15262 | } |
| 15263 | |
| 15264 | static int32_T c1__s32_minus__(SFc1_GCU_Model_genCodeInstanceStruct |
| 15265 | *chartInstance, int32_T c1_b, int32_T c1_c, uint32_T c1_ssid_src_loc, int32_T |
| 15266 | c1_offset_src_loc, int32_T c1_length_src_loc) |
| 15267 | { |
| 15268 | int32_T c1_a; |
| 15269 | (void)chartInstance; |
| 15270 | c1_a = c1_b - c1_c; |
| 15271 | if (((c1_b ^ c1_a) & (c1_b ^ c1_c)) < 0) { |
| 15272 | _SFD_OVERFLOW_DETECTION(SFDB_OVERFLOW, c1_ssid_src_loc, c1_offset_src_loc, |
| 15273 | c1_length_src_loc); |
| 15274 | } |
| 15275 | |
| 15276 | return c1_a; |
| 15277 | } |
| 15278 | |
| 15279 | static uint8_T c1__u8_s32_(SFc1_GCU_Model_genCodeInstanceStruct *chartInstance, |
| 15280 | int32_T c1_b, uint32_T c1_ssid_src_loc, int32_T c1_offset_src_loc, int32_T |
| 15281 | c1_length_src_loc) |
| 15282 | { |
| 15283 | uint8_T c1_a; |
| 15284 | (void)chartInstance; |
| 15285 | c1_a = (uint8_T)c1_b; |
| 15286 | if (c1_a != c1_b) { |
| 15287 | _SFD_OVERFLOW_DETECTION(SFDB_OVERFLOW, c1_ssid_src_loc, c1_offset_src_loc, |
| 15288 | c1_length_src_loc); |
| 15289 | } |
| 15290 | |
| 15291 | return c1_a; |
| 15292 | } |
| 15293 | |
| 15294 | static void c1_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15295 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 15296 | int32_T c1_streamedData) |
| 15297 | { |
| 15298 | if (chartInstance->c1_sdiLoggedStatesBuffer[c1_ssidIdx] & (uint8_T)c1_modeFlag) |
| 15299 | { |
| 15300 | sdi_update_self_activity_signal(&chartInstance->c1_sdiBlockInfo, c1_ssid, |
| 15301 | c1_streamedData); |
| 15302 | } |
| 15303 | } |
| 15304 | |
| 15305 | static void c1_b_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15306 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 15307 | void *c1_streamedData) |
| 15308 | { |
| 15309 | if (chartInstance->c1_sdiLoggedStatesBuffer[c1_ssidIdx] & (uint8_T)c1_modeFlag) |
| 15310 | { |
| 15311 | sdi_stream_child_activity_signal(&chartInstance->c1_sdiBlockInfo, c1_ssid, |
| 15312 | c1_streamedData); |
| 15313 | } |
| 15314 | } |
| 15315 | |
| 15316 | static void c1_c_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15317 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 15318 | int32_T c1_streamedData) |
| 15319 | { |
| 15320 | if (chartInstance->c1_sdiLoggedStatesBuffer[c1_ssidIdx] & (uint8_T)c1_modeFlag) |
| 15321 | { |
| 15322 | sdi_update_leaf_activity_signal(&chartInstance->c1_sdiBlockInfo, c1_ssid, |
| 15323 | c1_streamedData); |
| 15324 | } |
| 15325 | } |
| 15326 | |
| 15327 | static void c1_d_sdiStreamingWrapperFcn(SFc1_GCU_Model_genCodeInstanceStruct |
| 15328 | *chartInstance, int32_T c1_modeFlag, int32_T c1_ssidIdx, uint32_T c1_ssid, |
| 15329 | void *c1_streamedData) |
| 15330 | { |
| 15331 | (void)c1_modeFlag; |
| 15332 | if (chartInstance->c1_sdiLoggedDataBuffer[c1_ssidIdx]) { |
| 15333 | sdi_stream_data_signal(&chartInstance->c1_sdiBlockInfo, c1_ssid, |
| 15334 | c1_streamedData); |
| 15335 | } |
| 15336 | } |
| 15337 | |
| 15338 | static void init_test_point_addr_map(SFc1_GCU_Model_genCodeInstanceStruct |
| 15339 | *chartInstance) |
| 15340 | { |
| 15341 | chartInstance->c1_testPointAddrMap[0] = chartInstance->c1_clutchCurrVal; |
| 15342 | chartInstance->c1_testPointAddrMap[1] = &chartInstance->c1_aacCounter; |
| 15343 | chartInstance->c1_testPointAddrMap[2] = &chartInstance->c1_autoXCounter; |
| 15344 | chartInstance->c1_testPointAddrMap[3] = &chartInstance->c1_b_autoXCounter; |
| 15345 | } |
| 15346 | |
| 15347 | static void **get_test_point_address_map(SFc1_GCU_Model_genCodeInstanceStruct |
| 15348 | *chartInstance) |
| 15349 | { |
| 15350 | return &chartInstance->c1_testPointAddrMap[0]; |
| 15351 | } |
| 15352 | |
| 15353 | static rtwCAPI_ModelMappingInfo *get_test_point_mapping_info |
| 15354 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 15355 | { |
| 15356 | return &chartInstance->c1_testPointMappingInfo; |
| 15357 | } |
| 15358 | |
| 15359 | static void **get_dataset_logging_obj_vector |
| 15360 | (SFc1_GCU_Model_genCodeInstanceStruct *chartInstance) |
| 15361 | { |
| 15362 | return &chartInstance->c1_dataSetLogObjVector[0]; |
| 15363 | } |
| 15364 | |
| 15365 | static void init_dsm_address_info(SFc1_GCU_Model_genCodeInstanceStruct |
| 15366 | *chartInstance) |
| 15367 | { |
| 15368 | (void)chartInstance; |
| 15369 | } |
| 15370 | |
| 15371 | static void init_simulink_io_address(SFc1_GCU_Model_genCodeInstanceStruct |
| 15372 | *chartInstance) |
| 15373 | { |
| 15374 | chartInstance->c1_fEmlrtCtx = (void *)sfrtGetEmlrtCtx(chartInstance->S); |
| 15375 | chartInstance->c1_clutchCurrVal = (uint8_T *)ssGetOutputPortSignal_wrapper |
| 15376 | (chartInstance->S, 1); |
| 15377 | chartInstance->c1_lastModeCom = (uint16_T (*)[2])ssGetOutputPortSignal_wrapper |
| 15378 | (chartInstance->S, 2); |
| 15379 | chartInstance->c1_shiftCom = (uint16_T (*)[2])ssGetInputPortSignal_wrapper |
| 15380 | (chartInstance->S, 0); |
| 15381 | chartInstance->c1_startEngCom = (uint8_T *)ssGetInputPortSignal_wrapper |
| 15382 | (chartInstance->S, 1); |
| 15383 | chartInstance->c1_aacCom = (uint16_T (*)[2])ssGetInputPortSignal_wrapper |
| 15384 | (chartInstance->S, 2); |
| 15385 | chartInstance->c1_clutchTarget = (uint8_T *)ssGetInputPortSignal_wrapper |
| 15386 | (chartInstance->S, 3); |
| 15387 | chartInstance->c1_modeCom = (uint16_T (*)[2])ssGetInputPortSignal_wrapper |
| 15388 | (chartInstance->S, 4); |
| 15389 | chartInstance->c1_stateFb = (uint16_T *)ssGetOutputPortSignal_wrapper |
| 15390 | (chartInstance->S, 3); |
| 15391 | chartInstance->c1_acc_parameters = (int32_T (*)[16]) |
| 15392 | ssGetInputPortSignal_wrapper(chartInstance->S, 5); |
| 15393 | chartInstance->c1_timings = (int32_T (*)[24])ssGetInputPortSignal_wrapper |
| 15394 | (chartInstance->S, 6); |
| 15395 | chartInstance->c1_autoXCom = (uint16_T (*)[2])ssGetInputPortSignal_wrapper |
| 15396 | (chartInstance->S, 7); |
| 15397 | chartInstance->c1_autoX_parameters = (int32_T (*)[16]) |
| 15398 | ssGetInputPortSignal_wrapper(chartInstance->S, 8); |
| 15399 | chartInstance->c1_slipUpdateCounter = (uint8_T *)ssGetInputPortSignal_wrapper |
| 15400 | (chartInstance->S, 9); |
| 15401 | chartInstance->c1_antiStallEnable = (uint8_T *)ssGetOutputPortSignal_wrapper |
| 15402 | (chartInstance->S, 4); |
| 15403 | chartInstance->c1_antiStall_parameters = (int32_T (*)[8]) |
| 15404 | ssGetInputPortSignal_wrapper(chartInstance->S, 10); |
| 15405 | chartInstance->c1_antiStallFb = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15406 | (chartInstance->S, 11); |
| 15407 | chartInstance->c1_gearMotorCurent_1_2 = (uint32_T (*)[2]) |
| 15408 | ssGetInputPortSignal_wrapper(chartInstance->S, 12); |
| 15409 | chartInstance->c1_currGear = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15410 | (chartInstance->S, 13); |
| 15411 | chartInstance->c1_currTps = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15412 | (chartInstance->S, 14); |
| 15413 | chartInstance->c1_currRpm = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15414 | (chartInstance->S, 15); |
| 15415 | chartInstance->c1_currVhSpeed = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15416 | (chartInstance->S, 16); |
| 15417 | chartInstance->c1_currSlip = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15418 | (chartInstance->S, 17); |
| 15419 | chartInstance->c1_currSlipTarget = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15420 | (chartInstance->S, 18); |
| 15421 | chartInstance->c1_pidSubMode = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15422 | (chartInstance->S, 19); |
| 15423 | chartInstance->c1_pidCounter = (uint32_T *)ssGetOutputPortSignal_wrapper |
| 15424 | (chartInstance->S, 5); |
| 15425 | chartInstance->c1_I1_L = (real_T *)ssGetInputPortSignal_wrapper |
| 15426 | (chartInstance->S, 20); |
| 15427 | chartInstance->c1_I2_L = (real_T *)ssGetInputPortSignal_wrapper |
| 15428 | (chartInstance->S, 21); |
| 15429 | chartInstance->c1_canErrorCom = (uint16_T *)ssGetInputPortSignal_wrapper |
| 15430 | (chartInstance->S, 22); |
| 15431 | chartInstance->c1_rpmAccTarget = (uint16_T *)ssGetOutputPortSignal_wrapper |
| 15432 | (chartInstance->S, 6); |
| 15433 | chartInstance->c1_b_clutchCurrVal = (real_T *)ssGetInputPortSignal_wrapper |
| 15434 | (chartInstance->S, 23); |
| 15435 | chartInstance->c1_out = (boolean_T *)ssGetInputPortSignal_wrapper |
| 15436 | (chartInstance->S, 33); |
| 15437 | chartInstance->c1_time = (real_T *)ssGetOutputPortSignal_wrapper |
| 15438 | (chartInstance->S, 27); |
| 15439 | chartInstance->c1_current = (real_T *)ssGetOutputPortSignal_wrapper |
| 15440 | (chartInstance->S, 28); |
| 15441 | } |
| 15442 | |
| 15443 | /* SFunction Glue Code */ |
| 15444 | #ifdef utFree |
| 15445 | #undef utFree |
| 15446 | #endif |
| 15447 | |
| 15448 | #ifdef utMalloc |
| 15449 | #undef utMalloc |
| 15450 | #endif |
| 15451 | |
| 15452 | #ifdef __cplusplus |
| 15453 | |
| 15454 | extern "C" void *utMalloc(size_t size); |
| 15455 | extern "C" void utFree(void*); |
| 15456 | |
| 15457 | #else |
| 15458 | |
| 15459 | extern void *utMalloc(size_t size); |
| 15460 | extern void utFree(void*); |
| 15461 | |
| 15462 | #endif |
| 15463 | |
| 15464 | static void init_test_point_mapping_info(SimStruct *S); |
| 15465 | void sf_c1_GCU_Model_genCode_get_check_sum(mxArray *plhs[]) |
| 15466 | { |
| 15467 | ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(850943356U); |
| 15468 | ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(1716702901U); |
| 15469 | ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(976523448U); |
| 15470 | ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(11182174U); |
| 15471 | } |
| 15472 | |
| 15473 | mxArray* sf_c1_GCU_Model_genCode_get_post_codegen_info(void); |
| 15474 | mxArray *sf_c1_GCU_Model_genCode_get_autoinheritance_info(void) |
| 15475 | { |
| 15476 | const char *autoinheritanceFields[] = { "checksum", "inputs", "parameters", |
| 15477 | "outputs", "locals", "postCodegenInfo" }; |
| 15478 | |
| 15479 | mxArray *mxAutoinheritanceInfo = mxCreateStructMatrix(1, 1, sizeof |
| 15480 | (autoinheritanceFields)/sizeof(autoinheritanceFields[0]), |
| 15481 | autoinheritanceFields); |
| 15482 | |
| 15483 | { |
| 15484 | mxArray *mxChecksum = mxCreateString("2ftyJstvDiOT3XMgn2Im9"); |
| 15485 | mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum); |
| 15486 | } |
| 15487 | |
| 15488 | { |
| 15489 | const char *dataFields[] = { "size", "type", "complexity" }; |
| 15490 | |
| 15491 | mxArray *mxData = mxCreateStructMatrix(1,23,3,dataFields); |
| 15492 | |
| 15493 | { |
| 15494 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15495 | double *pr = mxGetPr(mxSize); |
| 15496 | pr[0] = (double)(1); |
| 15497 | pr[1] = (double)(2); |
| 15498 | mxSetField(mxData,0,"size",mxSize); |
| 15499 | } |
| 15500 | |
| 15501 | { |
| 15502 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15503 | |
| 15504 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15505 | (typeFields[0]),typeFields); |
| 15506 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15507 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15508 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15509 | mxSetField(mxData,0,"type",mxType); |
| 15510 | } |
| 15511 | |
| 15512 | mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0)); |
| 15513 | |
| 15514 | { |
| 15515 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15516 | double *pr = mxGetPr(mxSize); |
| 15517 | mxSetField(mxData,1,"size",mxSize); |
| 15518 | } |
| 15519 | |
| 15520 | { |
| 15521 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15522 | |
| 15523 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15524 | (typeFields[0]),typeFields); |
| 15525 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(3)); |
| 15526 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15527 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15528 | mxSetField(mxData,1,"type",mxType); |
| 15529 | } |
| 15530 | |
| 15531 | mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0)); |
| 15532 | |
| 15533 | { |
| 15534 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15535 | double *pr = mxGetPr(mxSize); |
| 15536 | pr[0] = (double)(1); |
| 15537 | pr[1] = (double)(2); |
| 15538 | mxSetField(mxData,2,"size",mxSize); |
| 15539 | } |
| 15540 | |
| 15541 | { |
| 15542 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15543 | |
| 15544 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15545 | (typeFields[0]),typeFields); |
| 15546 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15547 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15548 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15549 | mxSetField(mxData,2,"type",mxType); |
| 15550 | } |
| 15551 | |
| 15552 | mxSetField(mxData,2,"complexity",mxCreateDoubleScalar(0)); |
| 15553 | |
| 15554 | { |
| 15555 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15556 | double *pr = mxGetPr(mxSize); |
| 15557 | mxSetField(mxData,3,"size",mxSize); |
| 15558 | } |
| 15559 | |
| 15560 | { |
| 15561 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15562 | |
| 15563 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15564 | (typeFields[0]),typeFields); |
| 15565 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(3)); |
| 15566 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15567 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15568 | mxSetField(mxData,3,"type",mxType); |
| 15569 | } |
| 15570 | |
| 15571 | mxSetField(mxData,3,"complexity",mxCreateDoubleScalar(0)); |
| 15572 | |
| 15573 | { |
| 15574 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15575 | double *pr = mxGetPr(mxSize); |
| 15576 | pr[0] = (double)(1); |
| 15577 | pr[1] = (double)(2); |
| 15578 | mxSetField(mxData,4,"size",mxSize); |
| 15579 | } |
| 15580 | |
| 15581 | { |
| 15582 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15583 | |
| 15584 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15585 | (typeFields[0]),typeFields); |
| 15586 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15587 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15588 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15589 | mxSetField(mxData,4,"type",mxType); |
| 15590 | } |
| 15591 | |
| 15592 | mxSetField(mxData,4,"complexity",mxCreateDoubleScalar(0)); |
| 15593 | |
| 15594 | { |
| 15595 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15596 | double *pr = mxGetPr(mxSize); |
| 15597 | pr[0] = (double)(1); |
| 15598 | pr[1] = (double)(16); |
| 15599 | mxSetField(mxData,5,"size",mxSize); |
| 15600 | } |
| 15601 | |
| 15602 | { |
| 15603 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15604 | |
| 15605 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15606 | (typeFields[0]),typeFields); |
| 15607 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(8)); |
| 15608 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15609 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15610 | mxSetField(mxData,5,"type",mxType); |
| 15611 | } |
| 15612 | |
| 15613 | mxSetField(mxData,5,"complexity",mxCreateDoubleScalar(0)); |
| 15614 | |
| 15615 | { |
| 15616 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15617 | double *pr = mxGetPr(mxSize); |
| 15618 | pr[0] = (double)(1); |
| 15619 | pr[1] = (double)(24); |
| 15620 | mxSetField(mxData,6,"size",mxSize); |
| 15621 | } |
| 15622 | |
| 15623 | { |
| 15624 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15625 | |
| 15626 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15627 | (typeFields[0]),typeFields); |
| 15628 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(8)); |
| 15629 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15630 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15631 | mxSetField(mxData,6,"type",mxType); |
| 15632 | } |
| 15633 | |
| 15634 | mxSetField(mxData,6,"complexity",mxCreateDoubleScalar(0)); |
| 15635 | |
| 15636 | { |
| 15637 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15638 | double *pr = mxGetPr(mxSize); |
| 15639 | pr[0] = (double)(1); |
| 15640 | pr[1] = (double)(2); |
| 15641 | mxSetField(mxData,7,"size",mxSize); |
| 15642 | } |
| 15643 | |
| 15644 | { |
| 15645 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15646 | |
| 15647 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15648 | (typeFields[0]),typeFields); |
| 15649 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15650 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15651 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15652 | mxSetField(mxData,7,"type",mxType); |
| 15653 | } |
| 15654 | |
| 15655 | mxSetField(mxData,7,"complexity",mxCreateDoubleScalar(0)); |
| 15656 | |
| 15657 | { |
| 15658 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15659 | double *pr = mxGetPr(mxSize); |
| 15660 | pr[0] = (double)(1); |
| 15661 | pr[1] = (double)(16); |
| 15662 | mxSetField(mxData,8,"size",mxSize); |
| 15663 | } |
| 15664 | |
| 15665 | { |
| 15666 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15667 | |
| 15668 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15669 | (typeFields[0]),typeFields); |
| 15670 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(8)); |
| 15671 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15672 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15673 | mxSetField(mxData,8,"type",mxType); |
| 15674 | } |
| 15675 | |
| 15676 | mxSetField(mxData,8,"complexity",mxCreateDoubleScalar(0)); |
| 15677 | |
| 15678 | { |
| 15679 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15680 | double *pr = mxGetPr(mxSize); |
| 15681 | mxSetField(mxData,9,"size",mxSize); |
| 15682 | } |
| 15683 | |
| 15684 | { |
| 15685 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15686 | |
| 15687 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15688 | (typeFields[0]),typeFields); |
| 15689 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(3)); |
| 15690 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15691 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15692 | mxSetField(mxData,9,"type",mxType); |
| 15693 | } |
| 15694 | |
| 15695 | mxSetField(mxData,9,"complexity",mxCreateDoubleScalar(0)); |
| 15696 | |
| 15697 | { |
| 15698 | mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL); |
| 15699 | double *pr = mxGetPr(mxSize); |
| 15700 | pr[0] = (double)(1); |
| 15701 | pr[1] = (double)(8); |
| 15702 | mxSetField(mxData,10,"size",mxSize); |
| 15703 | } |
| 15704 | |
| 15705 | { |
| 15706 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15707 | |
| 15708 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15709 | (typeFields[0]),typeFields); |
| 15710 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(8)); |
| 15711 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15712 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15713 | mxSetField(mxData,10,"type",mxType); |
| 15714 | } |
| 15715 | |
| 15716 | mxSetField(mxData,10,"complexity",mxCreateDoubleScalar(0)); |
| 15717 | |
| 15718 | { |
| 15719 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15720 | double *pr = mxGetPr(mxSize); |
| 15721 | mxSetField(mxData,11,"size",mxSize); |
| 15722 | } |
| 15723 | |
| 15724 | { |
| 15725 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15726 | |
| 15727 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15728 | (typeFields[0]),typeFields); |
| 15729 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15730 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15731 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15732 | mxSetField(mxData,11,"type",mxType); |
| 15733 | } |
| 15734 | |
| 15735 | mxSetField(mxData,11,"complexity",mxCreateDoubleScalar(0)); |
| 15736 | |
| 15737 | { |
| 15738 | mxArray *mxSize = mxCreateDoubleMatrix(1,1,mxREAL); |
| 15739 | double *pr = mxGetPr(mxSize); |
| 15740 | pr[0] = (double)(2); |
| 15741 | mxSetField(mxData,12,"size",mxSize); |
| 15742 | } |
| 15743 | |
| 15744 | { |
| 15745 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15746 | |
| 15747 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15748 | (typeFields[0]),typeFields); |
| 15749 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(7)); |
| 15750 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15751 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15752 | mxSetField(mxData,12,"type",mxType); |
| 15753 | } |
| 15754 | |
| 15755 | mxSetField(mxData,12,"complexity",mxCreateDoubleScalar(0)); |
| 15756 | |
| 15757 | { |
| 15758 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15759 | double *pr = mxGetPr(mxSize); |
| 15760 | mxSetField(mxData,13,"size",mxSize); |
| 15761 | } |
| 15762 | |
| 15763 | { |
| 15764 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15765 | |
| 15766 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15767 | (typeFields[0]),typeFields); |
| 15768 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15769 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15770 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15771 | mxSetField(mxData,13,"type",mxType); |
| 15772 | } |
| 15773 | |
| 15774 | mxSetField(mxData,13,"complexity",mxCreateDoubleScalar(0)); |
| 15775 | |
| 15776 | { |
| 15777 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15778 | double *pr = mxGetPr(mxSize); |
| 15779 | mxSetField(mxData,14,"size",mxSize); |
| 15780 | } |
| 15781 | |
| 15782 | { |
| 15783 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15784 | |
| 15785 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15786 | (typeFields[0]),typeFields); |
| 15787 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15788 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15789 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15790 | mxSetField(mxData,14,"type",mxType); |
| 15791 | } |
| 15792 | |
| 15793 | mxSetField(mxData,14,"complexity",mxCreateDoubleScalar(0)); |
| 15794 | |
| 15795 | { |
| 15796 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15797 | double *pr = mxGetPr(mxSize); |
| 15798 | mxSetField(mxData,15,"size",mxSize); |
| 15799 | } |
| 15800 | |
| 15801 | { |
| 15802 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15803 | |
| 15804 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15805 | (typeFields[0]),typeFields); |
| 15806 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15807 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15808 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15809 | mxSetField(mxData,15,"type",mxType); |
| 15810 | } |
| 15811 | |
| 15812 | mxSetField(mxData,15,"complexity",mxCreateDoubleScalar(0)); |
| 15813 | |
| 15814 | { |
| 15815 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15816 | double *pr = mxGetPr(mxSize); |
| 15817 | mxSetField(mxData,16,"size",mxSize); |
| 15818 | } |
| 15819 | |
| 15820 | { |
| 15821 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15822 | |
| 15823 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15824 | (typeFields[0]),typeFields); |
| 15825 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15826 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15827 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15828 | mxSetField(mxData,16,"type",mxType); |
| 15829 | } |
| 15830 | |
| 15831 | mxSetField(mxData,16,"complexity",mxCreateDoubleScalar(0)); |
| 15832 | |
| 15833 | { |
| 15834 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15835 | double *pr = mxGetPr(mxSize); |
| 15836 | mxSetField(mxData,17,"size",mxSize); |
| 15837 | } |
| 15838 | |
| 15839 | { |
| 15840 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15841 | |
| 15842 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15843 | (typeFields[0]),typeFields); |
| 15844 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15845 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15846 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15847 | mxSetField(mxData,17,"type",mxType); |
| 15848 | } |
| 15849 | |
| 15850 | mxSetField(mxData,17,"complexity",mxCreateDoubleScalar(0)); |
| 15851 | |
| 15852 | { |
| 15853 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15854 | double *pr = mxGetPr(mxSize); |
| 15855 | mxSetField(mxData,18,"size",mxSize); |
| 15856 | } |
| 15857 | |
| 15858 | { |
| 15859 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15860 | |
| 15861 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15862 | (typeFields[0]),typeFields); |
| 15863 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15864 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15865 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15866 | mxSetField(mxData,18,"type",mxType); |
| 15867 | } |
| 15868 | |
| 15869 | mxSetField(mxData,18,"complexity",mxCreateDoubleScalar(0)); |
| 15870 | |
| 15871 | { |
| 15872 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15873 | double *pr = mxGetPr(mxSize); |
| 15874 | mxSetField(mxData,19,"size",mxSize); |
| 15875 | } |
| 15876 | |
| 15877 | { |
| 15878 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15879 | |
| 15880 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15881 | (typeFields[0]),typeFields); |
| 15882 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15883 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15884 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15885 | mxSetField(mxData,19,"type",mxType); |
| 15886 | } |
| 15887 | |
| 15888 | mxSetField(mxData,19,"complexity",mxCreateDoubleScalar(0)); |
| 15889 | |
| 15890 | { |
| 15891 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15892 | double *pr = mxGetPr(mxSize); |
| 15893 | mxSetField(mxData,20,"size",mxSize); |
| 15894 | } |
| 15895 | |
| 15896 | { |
| 15897 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15898 | |
| 15899 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15900 | (typeFields[0]),typeFields); |
| 15901 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(10)); |
| 15902 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15903 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15904 | mxSetField(mxData,20,"type",mxType); |
| 15905 | } |
| 15906 | |
| 15907 | mxSetField(mxData,20,"complexity",mxCreateDoubleScalar(0)); |
| 15908 | |
| 15909 | { |
| 15910 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15911 | double *pr = mxGetPr(mxSize); |
| 15912 | mxSetField(mxData,21,"size",mxSize); |
| 15913 | } |
| 15914 | |
| 15915 | { |
| 15916 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15917 | |
| 15918 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15919 | (typeFields[0]),typeFields); |
| 15920 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(10)); |
| 15921 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15922 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15923 | mxSetField(mxData,21,"type",mxType); |
| 15924 | } |
| 15925 | |
| 15926 | mxSetField(mxData,21,"complexity",mxCreateDoubleScalar(0)); |
| 15927 | |
| 15928 | { |
| 15929 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15930 | double *pr = mxGetPr(mxSize); |
| 15931 | mxSetField(mxData,22,"size",mxSize); |
| 15932 | } |
| 15933 | |
| 15934 | { |
| 15935 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15936 | |
| 15937 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15938 | (typeFields[0]),typeFields); |
| 15939 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15940 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15941 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15942 | mxSetField(mxData,22,"type",mxType); |
| 15943 | } |
| 15944 | |
| 15945 | mxSetField(mxData,22,"complexity",mxCreateDoubleScalar(0)); |
| 15946 | mxSetField(mxAutoinheritanceInfo,0,"inputs",mxData); |
| 15947 | } |
| 15948 | |
| 15949 | { |
| 15950 | mxSetField(mxAutoinheritanceInfo,0,"parameters",mxCreateDoubleMatrix(0,0, |
| 15951 | mxREAL)); |
| 15952 | } |
| 15953 | |
| 15954 | { |
| 15955 | const char *dataFields[] = { "size", "type", "complexity" }; |
| 15956 | |
| 15957 | mxArray *mxData = mxCreateStructMatrix(1,6,3,dataFields); |
| 15958 | |
| 15959 | { |
| 15960 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 15961 | double *pr = mxGetPr(mxSize); |
| 15962 | mxSetField(mxData,0,"size",mxSize); |
| 15963 | } |
| 15964 | |
| 15965 | { |
| 15966 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15967 | |
| 15968 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15969 | (typeFields[0]),typeFields); |
| 15970 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(3)); |
| 15971 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15972 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15973 | mxSetField(mxData,0,"type",mxType); |
| 15974 | } |
| 15975 | |
| 15976 | mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0)); |
| 15977 | |
| 15978 | { |
| 15979 | mxArray *mxSize = mxCreateDoubleMatrix(1,1,mxREAL); |
| 15980 | double *pr = mxGetPr(mxSize); |
| 15981 | pr[0] = (double)(2); |
| 15982 | mxSetField(mxData,1,"size",mxSize); |
| 15983 | } |
| 15984 | |
| 15985 | { |
| 15986 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 15987 | |
| 15988 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 15989 | (typeFields[0]),typeFields); |
| 15990 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 15991 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 15992 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 15993 | mxSetField(mxData,1,"type",mxType); |
| 15994 | } |
| 15995 | |
| 15996 | mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0)); |
| 15997 | |
| 15998 | { |
| 15999 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 16000 | double *pr = mxGetPr(mxSize); |
| 16001 | mxSetField(mxData,2,"size",mxSize); |
| 16002 | } |
| 16003 | |
| 16004 | { |
| 16005 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 16006 | |
| 16007 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 16008 | (typeFields[0]),typeFields); |
| 16009 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 16010 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 16011 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 16012 | mxSetField(mxData,2,"type",mxType); |
| 16013 | } |
| 16014 | |
| 16015 | mxSetField(mxData,2,"complexity",mxCreateDoubleScalar(0)); |
| 16016 | |
| 16017 | { |
| 16018 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 16019 | double *pr = mxGetPr(mxSize); |
| 16020 | mxSetField(mxData,3,"size",mxSize); |
| 16021 | } |
| 16022 | |
| 16023 | { |
| 16024 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 16025 | |
| 16026 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 16027 | (typeFields[0]),typeFields); |
| 16028 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(3)); |
| 16029 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 16030 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 16031 | mxSetField(mxData,3,"type",mxType); |
| 16032 | } |
| 16033 | |
| 16034 | mxSetField(mxData,3,"complexity",mxCreateDoubleScalar(0)); |
| 16035 | |
| 16036 | { |
| 16037 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 16038 | double *pr = mxGetPr(mxSize); |
| 16039 | mxSetField(mxData,4,"size",mxSize); |
| 16040 | } |
| 16041 | |
| 16042 | { |
| 16043 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 16044 | |
| 16045 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 16046 | (typeFields[0]),typeFields); |
| 16047 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(7)); |
| 16048 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 16049 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 16050 | mxSetField(mxData,4,"type",mxType); |
| 16051 | } |
| 16052 | |
| 16053 | mxSetField(mxData,4,"complexity",mxCreateDoubleScalar(0)); |
| 16054 | |
| 16055 | { |
| 16056 | mxArray *mxSize = mxCreateDoubleMatrix(1,0,mxREAL); |
| 16057 | double *pr = mxGetPr(mxSize); |
| 16058 | mxSetField(mxData,5,"size",mxSize); |
| 16059 | } |
| 16060 | |
| 16061 | { |
| 16062 | const char *typeFields[] = { "base", "fixpt", "isFixedPointType" }; |
| 16063 | |
| 16064 | mxArray *mxType = mxCreateStructMatrix(1,1,sizeof(typeFields)/sizeof |
| 16065 | (typeFields[0]),typeFields); |
| 16066 | mxSetField(mxType,0,"base",mxCreateDoubleScalar(5)); |
| 16067 | mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 16068 | mxSetField(mxType,0,"isFixedPointType",mxCreateDoubleScalar(0)); |
| 16069 | mxSetField(mxData,5,"type",mxType); |
| 16070 | } |
| 16071 | |
| 16072 | mxSetField(mxData,5,"complexity",mxCreateDoubleScalar(0)); |
| 16073 | mxSetField(mxAutoinheritanceInfo,0,"outputs",mxData); |
| 16074 | } |
| 16075 | |
| 16076 | { |
| 16077 | mxSetField(mxAutoinheritanceInfo,0,"locals",mxCreateDoubleMatrix(0,0,mxREAL)); |
| 16078 | } |
| 16079 | |
| 16080 | { |
| 16081 | mxArray* mxPostCodegenInfo = sf_c1_GCU_Model_genCode_get_post_codegen_info(); |
| 16082 | mxSetField(mxAutoinheritanceInfo,0,"postCodegenInfo",mxPostCodegenInfo); |
| 16083 | } |
| 16084 | |
| 16085 | return(mxAutoinheritanceInfo); |
| 16086 | } |
| 16087 | |
| 16088 | mxArray *sf_c1_GCU_Model_genCode_third_party_uses_info(void) |
| 16089 | { |
| 16090 | mxArray * mxcell3p = mxCreateCellMatrix(1,0); |
| 16091 | return(mxcell3p); |
| 16092 | } |
| 16093 | |
| 16094 | mxArray *sf_c1_GCU_Model_genCode_jit_fallback_info(void) |
| 16095 | { |
| 16096 | const char *infoFields[] = { "fallbackType", "fallbackReason", |
| 16097 | "hiddenFallbackType", "hiddenFallbackReason", "incompatibleSymbol" }; |
| 16098 | |
| 16099 | mxArray *mxInfo = mxCreateStructMatrix(1, 1, 5, infoFields); |
| 16100 | mxArray *fallbackType = mxCreateString("early"); |
| 16101 | mxArray *fallbackReason = mxCreateString("custom_code"); |
| 16102 | mxArray *hiddenFallbackType = mxCreateString(""); |
| 16103 | mxArray *hiddenFallbackReason = mxCreateString(""); |
| 16104 | mxArray *incompatibleSymbol = mxCreateString(""); |
| 16105 | mxSetField(mxInfo, 0, infoFields[0], fallbackType); |
| 16106 | mxSetField(mxInfo, 0, infoFields[1], fallbackReason); |
| 16107 | mxSetField(mxInfo, 0, infoFields[2], hiddenFallbackType); |
| 16108 | mxSetField(mxInfo, 0, infoFields[3], hiddenFallbackReason); |
| 16109 | mxSetField(mxInfo, 0, infoFields[4], incompatibleSymbol); |
| 16110 | return mxInfo; |
| 16111 | } |
| 16112 | |
| 16113 | mxArray *sf_c1_GCU_Model_genCode_updateBuildInfo_args_info(void) |
| 16114 | { |
| 16115 | mxArray *mxBIArgs = mxCreateCellMatrix(1,0); |
| 16116 | return mxBIArgs; |
| 16117 | } |
| 16118 | |
| 16119 | mxArray* sf_c1_GCU_Model_genCode_get_post_codegen_info(void) |
| 16120 | { |
| 16121 | const char* fieldNames[] = { "exportedFunctionsUsedByThisChart", |
| 16122 | "exportedFunctionsChecksum" }; |
| 16123 | |
| 16124 | mwSize dims[2] = { 1, 1 }; |
| 16125 | |
| 16126 | mxArray* mxPostCodegenInfo = mxCreateStructArray(2, dims, sizeof(fieldNames)/ |
| 16127 | sizeof(fieldNames[0]), fieldNames); |
| 16128 | |
| 16129 | { |
| 16130 | mxArray* mxExportedFunctionsChecksum = mxCreateString(""); |
| 16131 | mwSize exp_dims[2] = { 0, 1 }; |
| 16132 | |
| 16133 | mxArray* mxExportedFunctionsUsedByThisChart = mxCreateCellArray(2, exp_dims); |
| 16134 | mxSetField(mxPostCodegenInfo, 0, "exportedFunctionsUsedByThisChart", |
| 16135 | mxExportedFunctionsUsedByThisChart); |
| 16136 | mxSetField(mxPostCodegenInfo, 0, "exportedFunctionsChecksum", |
| 16137 | mxExportedFunctionsChecksum); |
| 16138 | } |
| 16139 | |
| 16140 | return mxPostCodegenInfo; |
| 16141 | } |
| 16142 | |
| 16143 | static const mxArray *sf_get_sim_state_info_c1_GCU_Model_genCode(void) |
| 16144 | { |
| 16145 | const char *infoFields[] = { "chartChecksum", "varInfo" }; |
| 16146 | |
| 16147 | mxArray *mxInfo = mxCreateStructMatrix(1, 1, 2, infoFields); |
| 16148 | const char *infoEncStr[] = { |
| 16149 | "100 S1x10'type','srcId','name','auxInfo'{{M[1],M[1073],T\"antiStallEnable\",},{M[1],M[123],T\"clutchCurrVal\",},{M[1],M[834],T\"lastModeCom\",},{M[1],M[1839],T\"pidCounter\",},{M[1],M[2851],T\"rpmAccTarget\",},{M[1],M[833],T\"stateFb\",},{M[3],M[550],T\"aacCounter\",},{M[3],M[563],T\"aac_clutchStep\",},{M[3],M[561],T\"aac_clutchValue\",},{M[3],M[564],T\"aac_dtRelease\",}}", |
| 16150 | "100 S1x10'type','srcId','name','auxInfo'{{M[3],M[958],T\"autoXCounter\",},{M[3],M[2170],T\"autoXCounter\",},{M[3],M[960],T\"autoX_clutchStep\",},{M[3],M[2172],T\"autoX_clutchStep\",},{M[3],M[959],T\"autoX_clutchValue\",},{M[3],M[2171],T\"autoX_clutchValue\",},{M[3],M[961],T\"autoX_dtRelease\",},{M[3],M[2173],T\"autoX_dtRelease\",},{M[3],M[1063],T\"buzzerCounter\",},{M[3],M[950],T\"counterWait\",}}", |
| 16151 | "100 S1x10'type','srcId','name','auxInfo'{{M[3],M[1068],T\"counterWait\",},{M[3],M[627],T\"lastAacCom\",},{M[3],M[1043],T\"lastAutoXCom\",},{M[3],M[484],T\"lastCom\",},{M[3],M[715],T\"lastShift\",},{M[3],M[681],T\"lastShiftCom\",},{M[3],M[2004],T\"lastTryShift\",},{M[3],M[488],T\"startCounter\",},{M[3],M[45],T\"ticksCounter\",},{M[3],M[938],T\"timerCounter\",}}", |
| 16152 | "100 S1x10'type','srcId','name','auxInfo'{{M[8],M[0],T\"is_active_c1_GCU_Model_genCode\",},{M[8],M[1],T\"is_active_GEARSHIFT\",},{M[8],M[31],T\"is_active_NEUTRAL_STATE\",},{M[8],M[418],T\"is_active_MODES\",},{M[8],M[479],T\"is_active_START_ENGINE\",},{M[8],M[929],T\"is_active_SCAN_ADC\",},{M[8],M[940],T\"is_active_EEPROM_TRIGGER\",},{M[8],M[1069],T\"is_active_ANTISTALL_ENABLE\",},{M[9],M[1],T\"is_GEARSHIFT\",},{M[9],M[9],T\"is_UP_START\",}}", |
| 16153 | "100 S1x10'type','srcId','name','auxInfo'{{M[9],M[10],T\"is_UP_PUSH\",},{M[9],M[11],T\"is_UP_REBOUND\",},{M[9],M[14],T\"is_DOWN_START\",},{M[9],M[17],T\"is_DOWN_BRAKE\",},{M[9],M[31],T\"is_NEUTRAL_STATE\",},{M[9],M[418],T\"is_MODES\",},{M[9],M[434],T\"is_ACC\",},{M[9],M[479],T\"is_START_ENGINE\",},{M[9],M[538],T\"is_ACTIVE\",},{M[9],M[693],T\"is_UPSHIFTING\",}}", |
| 16154 | "100 S1x10'type','srcId','name','auxInfo'{{M[9],M[697],T\"is_DOWNSHIFTING\",},{M[9],M[727],T\"is_MANUAL_MODES\",},{M[9],M[820],T\"is_ACCELERATION\",},{M[9],M[929],T\"is_SCAN_ADC\",},{M[9],M[940],T\"is_EEPROM_TRIGGER\",},{M[9],M[951],T\"is_AUTOCROSS\",},{M[9],M[974],T\"is_LAUNCH\",},{M[9],M[985],T\"is_ACTIVE\",},{M[9],M[1069],T\"is_ANTISTALL_ENABLE\",},{M[9],M[1157],T\"is_ACCELERATION_PID\",}}", |
| 16155 | "100 S1x2'type','srcId','name','auxInfo'{{M[9],M[2174],T\"is_LAUNCH0\",},{M[9],M[2182],T\"is_ACTIVE\",}}" |
| 16156 | }; |
| 16157 | |
| 16158 | mxArray *mxVarInfo = sf_mex_decode_encoded_mx_struct_array(infoEncStr, 62, 10); |
| 16159 | mxArray *mxChecksum = mxCreateDoubleMatrix(1, 4, mxREAL); |
| 16160 | sf_c1_GCU_Model_genCode_get_check_sum(&mxChecksum); |
| 16161 | mxSetField(mxInfo, 0, infoFields[0], mxChecksum); |
| 16162 | mxSetField(mxInfo, 0, infoFields[1], mxVarInfo); |
| 16163 | return mxInfo; |
| 16164 | } |
| 16165 | |
| 16166 | static const mxArray* sf_opaque_get_hover_data_for_msg(void* chartInstance, |
| 16167 | int32_T msgSSID) |
| 16168 | { |
| 16169 | return sf_get_hover_data_for_msg( (SFc1_GCU_Model_genCodeInstanceStruct *) |
| 16170 | chartInstance, msgSSID); |
| 16171 | } |
| 16172 | |
| 16173 | static void chart_debug_initialization(SimStruct *S, unsigned int |
| 16174 | fullDebuggerInitialization) |
| 16175 | { |
| 16176 | if (!sim_mode_is_rtw_gen(S)) { |
| 16177 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance = |
| 16178 | (SFc1_GCU_Model_genCodeInstanceStruct *)sf_get_chart_instance_ptr(S); |
| 16179 | if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { |
| 16180 | /* do this only if simulation is starting */ |
| 16181 | { |
| 16182 | unsigned int chartAlreadyPresent; |
| 16183 | chartAlreadyPresent = sf_debug_initialize_chart |
| 16184 | (sfGlobalDebugInstanceStruct, |
| 16185 | _GCU_Model_genCodeMachineNumber_, |
| 16186 | 1, |
| 16187 | 91, |
| 16188 | 233, |
| 16189 | 0, |
| 16190 | 89, |
| 16191 | 19, |
| 16192 | 0, |
| 16193 | 0, |
| 16194 | 0, |
| 16195 | 0, |
| 16196 | &chartInstance->chartNumber, |
| 16197 | &chartInstance->instanceNumber, |
| 16198 | (void *)S); |
| 16199 | |
| 16200 | /* Each instance must initialize its own list of scripts */ |
| 16201 | init_script_number_translation(_GCU_Model_genCodeMachineNumber_, |
| 16202 | chartInstance->chartNumber,chartInstance->instanceNumber); |
| 16203 | if (chartAlreadyPresent==0) { |
| 16204 | /* this is the first instance */ |
| 16205 | sf_debug_set_chart_disable_implicit_casting |
| 16206 | (sfGlobalDebugInstanceStruct,_GCU_Model_genCodeMachineNumber_, |
| 16207 | chartInstance->chartNumber,1); |
| 16208 | sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, |
| 16209 | _GCU_Model_genCodeMachineNumber_, |
| 16210 | chartInstance->chartNumber, |
| 16211 | 19, |
| 16212 | 19, |
| 16213 | 19); |
| 16214 | _SFD_SET_DATA_PROPS(0,0,0,0,"buzzerCounter"); |
| 16215 | _SFD_SET_DATA_PROPS(1,0,0,0,"lastAacCom"); |
| 16216 | _SFD_SET_DATA_PROPS(2,0,0,0,"lastAutoXCom"); |
| 16217 | _SFD_SET_DATA_PROPS(3,0,0,0,"lastShiftCom"); |
| 16218 | _SFD_SET_DATA_PROPS(4,0,0,0,"aacCounter"); |
| 16219 | _SFD_SET_DATA_PROPS(5,0,0,0,"aac_clutchStep"); |
| 16220 | _SFD_SET_DATA_PROPS(6,0,0,0,"aac_clutchValue"); |
| 16221 | _SFD_SET_DATA_PROPS(7,0,0,0,"aac_dtRelease"); |
| 16222 | _SFD_SET_DATA_PROPS(8,0,0,0,"autoXCounter"); |
| 16223 | _SFD_SET_DATA_PROPS(9,0,0,0,"autoX_clutchStep"); |
| 16224 | _SFD_SET_DATA_PROPS(10,0,0,0,"autoX_clutchValue"); |
| 16225 | _SFD_SET_DATA_PROPS(11,0,0,0,"autoX_dtRelease"); |
| 16226 | _SFD_SET_DATA_PROPS(12,0,0,0,"autoXCounter"); |
| 16227 | _SFD_SET_DATA_PROPS(13,0,0,0,"autoX_clutchStep"); |
| 16228 | _SFD_SET_DATA_PROPS(14,0,0,0,"autoX_clutchValue"); |
| 16229 | _SFD_SET_DATA_PROPS(15,0,0,0,"autoX_dtRelease"); |
| 16230 | _SFD_SET_DATA_PROPS(16,0,0,0,"ticksCounter"); |
| 16231 | _SFD_SET_DATA_PROPS(17,0,0,0,"counterWait"); |
| 16232 | _SFD_SET_DATA_PROPS(18,0,0,0,"lastCom"); |
| 16233 | _SFD_SET_DATA_PROPS(19,0,0,0,"startCounter"); |
| 16234 | _SFD_SET_DATA_PROPS(20,0,0,0,"timerCounter"); |
| 16235 | _SFD_SET_DATA_PROPS(21,0,0,0,"counterWait"); |
| 16236 | _SFD_SET_DATA_PROPS(22,0,0,0,"lastShift"); |
| 16237 | _SFD_SET_DATA_PROPS(23,0,0,0,"lastTryShift"); |
| 16238 | _SFD_SET_DATA_PROPS(24,1,1,0,"shiftCom"); |
| 16239 | _SFD_SET_DATA_PROPS(25,1,1,0,"startEngCom"); |
| 16240 | _SFD_SET_DATA_PROPS(26,1,1,0,"aacCom"); |
| 16241 | _SFD_SET_DATA_PROPS(27,1,1,0,"clutchTarget"); |
| 16242 | _SFD_SET_DATA_PROPS(28,1,1,0,"modeCom"); |
| 16243 | _SFD_SET_DATA_PROPS(29,1,1,0,"acc_parameters"); |
| 16244 | _SFD_SET_DATA_PROPS(30,1,1,0,"timings"); |
| 16245 | _SFD_SET_DATA_PROPS(31,1,1,0,"autoXCom"); |
| 16246 | _SFD_SET_DATA_PROPS(32,1,1,0,"autoX_parameters"); |
| 16247 | _SFD_SET_DATA_PROPS(33,1,1,0,"slipUpdateCounter"); |
| 16248 | _SFD_SET_DATA_PROPS(34,1,1,0,"antiStall_parameters"); |
| 16249 | _SFD_SET_DATA_PROPS(35,1,1,0,"antiStallFb"); |
| 16250 | _SFD_SET_DATA_PROPS(36,1,1,0,"gearMotorCurent_1_2"); |
| 16251 | _SFD_SET_DATA_PROPS(37,1,1,0,"currGear"); |
| 16252 | _SFD_SET_DATA_PROPS(38,1,1,0,"currTps"); |
| 16253 | _SFD_SET_DATA_PROPS(39,1,1,0,"currRpm"); |
| 16254 | _SFD_SET_DATA_PROPS(40,1,1,0,"currVhSpeed"); |
| 16255 | _SFD_SET_DATA_PROPS(41,1,1,0,"currSlip"); |
| 16256 | _SFD_SET_DATA_PROPS(42,1,1,0,"currSlipTarget"); |
| 16257 | _SFD_SET_DATA_PROPS(43,1,1,0,"pidSubMode"); |
| 16258 | _SFD_SET_DATA_PROPS(44,1,1,0,"I1_L"); |
| 16259 | _SFD_SET_DATA_PROPS(45,1,1,0,"I2_L"); |
| 16260 | _SFD_SET_DATA_PROPS(46,1,1,0,"canErrorCom"); |
| 16261 | _SFD_SET_DATA_PROPS(47,2,0,1,"clutchCurrVal"); |
| 16262 | _SFD_SET_DATA_PROPS(48,2,0,1,"lastModeCom"); |
| 16263 | _SFD_SET_DATA_PROPS(49,2,0,1,"stateFb"); |
| 16264 | _SFD_SET_DATA_PROPS(50,2,0,1,"antiStallEnable"); |
| 16265 | _SFD_SET_DATA_PROPS(51,2,0,1,"pidCounter"); |
| 16266 | _SFD_SET_DATA_PROPS(52,2,0,1,"rpmAccTarget"); |
| 16267 | _SFD_SET_DATA_PROPS(53,7,0,0,"GEAR_COMMAND_DOWN"); |
| 16268 | _SFD_SET_DATA_PROPS(54,7,0,0,"GEAR_COMMAND_NEUTRAL_DOWN"); |
| 16269 | _SFD_SET_DATA_PROPS(55,7,0,0,"GEAR_COMMAND_NEUTRAL_UP"); |
| 16270 | _SFD_SET_DATA_PROPS(56,7,0,0,"GEAR_COMMAND_UP"); |
| 16271 | _SFD_SET_DATA_PROPS(57,7,0,0,"GEAR_COMMAND_DOWN"); |
| 16272 | _SFD_SET_DATA_PROPS(58,7,0,0,"GEAR_COMMAND_NEUTRAL_DOWN"); |
| 16273 | _SFD_SET_DATA_PROPS(59,7,0,0,"GEAR_COMMAND_NEUTRAL_UP"); |
| 16274 | _SFD_SET_DATA_PROPS(60,7,0,0,"GEAR_COMMAND_UP"); |
| 16275 | _SFD_SET_DATA_PROPS(61,7,0,0,"AAC_WORK_RATE_ms"); |
| 16276 | _SFD_SET_DATA_PROPS(62,7,0,0,"ACC_CODE"); |
| 16277 | _SFD_SET_DATA_PROPS(63,7,0,0,"DEF_RAMP_END"); |
| 16278 | _SFD_SET_DATA_PROPS(64,7,0,0,"DEF_RAMP_START"); |
| 16279 | _SFD_SET_DATA_PROPS(65,7,0,0,"DEF_RAMP_TIME"); |
| 16280 | _SFD_SET_DATA_PROPS(66,7,0,0,"DEF_RPM_LIMIT_1_2"); |
| 16281 | _SFD_SET_DATA_PROPS(67,7,0,0,"DEF_RPM_LIMIT_2_3"); |
| 16282 | _SFD_SET_DATA_PROPS(68,7,0,0,"DEF_RPM_LIMIT_3_4"); |
| 16283 | _SFD_SET_DATA_PROPS(69,7,0,0,"DEF_RPM_LIMIT_4_5"); |
| 16284 | _SFD_SET_DATA_PROPS(70,7,0,0,"DEF_SPEED_LIMIT_1_2"); |
| 16285 | _SFD_SET_DATA_PROPS(71,7,0,0,"DEF_SPEED_LIMIT_2_3"); |
| 16286 | _SFD_SET_DATA_PROPS(72,7,0,0,"DEF_SPEED_LIMIT_3_4"); |
| 16287 | _SFD_SET_DATA_PROPS(73,7,0,0,"DEF_SPEED_LIMIT_4_5"); |
| 16288 | _SFD_SET_DATA_PROPS(74,7,0,0,"AUTOX_WORK_RATE_ms"); |
| 16289 | _SFD_SET_DATA_PROPS(75,7,0,0,"AUTOX_WORK_RATE_ms"); |
| 16290 | _SFD_SET_DATA_PROPS(76,7,0,0,"data"); |
| 16291 | _SFD_SET_DATA_PROPS(77,8,0,0,""); |
| 16292 | _SFD_SET_DATA_PROPS(78,8,0,0,""); |
| 16293 | _SFD_SET_DATA_PROPS(79,8,0,0,""); |
| 16294 | _SFD_SET_DATA_PROPS(80,8,0,0,""); |
| 16295 | _SFD_SET_DATA_PROPS(81,8,0,0,""); |
| 16296 | _SFD_SET_DATA_PROPS(82,8,0,0,""); |
| 16297 | _SFD_SET_DATA_PROPS(83,9,0,0,""); |
| 16298 | _SFD_SET_DATA_PROPS(84,9,0,0,""); |
| 16299 | _SFD_SET_DATA_PROPS(85,9,0,0,""); |
| 16300 | _SFD_SET_DATA_PROPS(86,9,0,0,""); |
| 16301 | _SFD_SET_DATA_PROPS(87,9,0,0,""); |
| 16302 | _SFD_SET_DATA_PROPS(88,9,0,0,""); |
| 16303 | _SFD_EVENT_SCOPE(0,0); |
| 16304 | _SFD_EVENT_SCOPE(1,0); |
| 16305 | _SFD_EVENT_SCOPE(2,0); |
| 16306 | _SFD_EVENT_SCOPE(3,2); |
| 16307 | _SFD_EVENT_SCOPE(4,2); |
| 16308 | _SFD_EVENT_SCOPE(5,2); |
| 16309 | _SFD_EVENT_SCOPE(6,2); |
| 16310 | _SFD_EVENT_SCOPE(7,2); |
| 16311 | _SFD_EVENT_SCOPE(8,2); |
| 16312 | _SFD_EVENT_SCOPE(9,2); |
| 16313 | _SFD_EVENT_SCOPE(10,2); |
| 16314 | _SFD_EVENT_SCOPE(11,2); |
| 16315 | _SFD_EVENT_SCOPE(12,2); |
| 16316 | _SFD_EVENT_SCOPE(13,2); |
| 16317 | _SFD_EVENT_SCOPE(14,2); |
| 16318 | _SFD_EVENT_SCOPE(15,2); |
| 16319 | _SFD_EVENT_SCOPE(16,2); |
| 16320 | _SFD_EVENT_SCOPE(17,2); |
| 16321 | _SFD_EVENT_SCOPE(18,2); |
| 16322 | _SFD_STATE_INFO(0,0,1); |
| 16323 | _SFD_STATE_INFO(1,0,0); |
| 16324 | _SFD_STATE_INFO(2,0,0); |
| 16325 | _SFD_STATE_INFO(4,0,1); |
| 16326 | _SFD_STATE_INFO(5,0,0); |
| 16327 | _SFD_STATE_INFO(6,0,0); |
| 16328 | _SFD_STATE_INFO(7,0,1); |
| 16329 | _SFD_STATE_INFO(8,0,0); |
| 16330 | _SFD_STATE_INFO(9,0,0); |
| 16331 | _SFD_STATE_INFO(10,0,0); |
| 16332 | _SFD_STATE_INFO(11,0,0); |
| 16333 | _SFD_STATE_INFO(12,0,0); |
| 16334 | _SFD_STATE_INFO(13,0,0); |
| 16335 | _SFD_STATE_INFO(14,0,0); |
| 16336 | _SFD_STATE_INFO(15,0,0); |
| 16337 | _SFD_STATE_INFO(16,0,0); |
| 16338 | _SFD_STATE_INFO(17,0,0); |
| 16339 | _SFD_STATE_INFO(18,0,0); |
| 16340 | _SFD_STATE_INFO(20,0,0); |
| 16341 | _SFD_STATE_INFO(21,0,0); |
| 16342 | _SFD_STATE_INFO(22,0,0); |
| 16343 | _SFD_STATE_INFO(23,0,0); |
| 16344 | _SFD_STATE_INFO(24,0,0); |
| 16345 | _SFD_STATE_INFO(25,0,0); |
| 16346 | _SFD_STATE_INFO(26,0,0); |
| 16347 | _SFD_STATE_INFO(27,0,0); |
| 16348 | _SFD_STATE_INFO(28,0,0); |
| 16349 | _SFD_STATE_INFO(29,0,0); |
| 16350 | _SFD_STATE_INFO(30,0,0); |
| 16351 | _SFD_STATE_INFO(31,0,0); |
| 16352 | _SFD_STATE_INFO(32,0,0); |
| 16353 | _SFD_STATE_INFO(33,0,0); |
| 16354 | _SFD_STATE_INFO(35,0,1); |
| 16355 | _SFD_STATE_INFO(36,0,0); |
| 16356 | _SFD_STATE_INFO(37,0,0); |
| 16357 | _SFD_STATE_INFO(38,0,0); |
| 16358 | _SFD_STATE_INFO(39,0,0); |
| 16359 | _SFD_STATE_INFO(40,0,0); |
| 16360 | _SFD_STATE_INFO(41,0,0); |
| 16361 | _SFD_STATE_INFO(42,0,0); |
| 16362 | _SFD_STATE_INFO(43,0,0); |
| 16363 | _SFD_STATE_INFO(45,0,0); |
| 16364 | _SFD_STATE_INFO(47,0,0); |
| 16365 | _SFD_STATE_INFO(48,0,0); |
| 16366 | _SFD_STATE_INFO(49,0,0); |
| 16367 | _SFD_STATE_INFO(50,0,0); |
| 16368 | _SFD_STATE_INFO(51,0,0); |
| 16369 | _SFD_STATE_INFO(52,0,0); |
| 16370 | _SFD_STATE_INFO(53,0,0); |
| 16371 | _SFD_STATE_INFO(54,0,0); |
| 16372 | _SFD_STATE_INFO(55,0,0); |
| 16373 | _SFD_STATE_INFO(56,0,0); |
| 16374 | _SFD_STATE_INFO(59,0,0); |
| 16375 | _SFD_STATE_INFO(61,0,0); |
| 16376 | _SFD_STATE_INFO(62,0,0); |
| 16377 | _SFD_STATE_INFO(63,0,0); |
| 16378 | _SFD_STATE_INFO(64,0,0); |
| 16379 | _SFD_STATE_INFO(65,0,0); |
| 16380 | _SFD_STATE_INFO(66,0,0); |
| 16381 | _SFD_STATE_INFO(67,0,0); |
| 16382 | _SFD_STATE_INFO(68,0,0); |
| 16383 | _SFD_STATE_INFO(69,0,0); |
| 16384 | _SFD_STATE_INFO(71,0,0); |
| 16385 | _SFD_STATE_INFO(73,0,0); |
| 16386 | _SFD_STATE_INFO(74,0,0); |
| 16387 | _SFD_STATE_INFO(75,0,0); |
| 16388 | _SFD_STATE_INFO(76,0,0); |
| 16389 | _SFD_STATE_INFO(79,0,1); |
| 16390 | _SFD_STATE_INFO(80,0,0); |
| 16391 | _SFD_STATE_INFO(81,0,0); |
| 16392 | _SFD_STATE_INFO(82,0,0); |
| 16393 | _SFD_STATE_INFO(83,0,0); |
| 16394 | _SFD_STATE_INFO(84,0,1); |
| 16395 | _SFD_STATE_INFO(85,0,0); |
| 16396 | _SFD_STATE_INFO(87,0,1); |
| 16397 | _SFD_STATE_INFO(88,0,0); |
| 16398 | _SFD_STATE_INFO(89,0,0); |
| 16399 | _SFD_STATE_INFO(90,0,0); |
| 16400 | _SFD_STATE_INFO(19,0,2); |
| 16401 | _SFD_STATE_INFO(34,0,2); |
| 16402 | _SFD_STATE_INFO(44,0,2); |
| 16403 | _SFD_STATE_INFO(46,0,2); |
| 16404 | _SFD_STATE_INFO(57,0,2); |
| 16405 | _SFD_STATE_INFO(58,0,2); |
| 16406 | _SFD_STATE_INFO(60,0,2); |
| 16407 | _SFD_STATE_INFO(70,0,2); |
| 16408 | _SFD_STATE_INFO(72,0,2); |
| 16409 | _SFD_STATE_INFO(77,0,2); |
| 16410 | _SFD_STATE_INFO(78,0,2); |
| 16411 | _SFD_STATE_INFO(86,0,2); |
| 16412 | _SFD_STATE_INFO(3,0,2); |
| 16413 | _SFD_CH_SUBSTATE_COUNT(7); |
| 16414 | _SFD_CH_SUBSTATE_DECOMP(1); |
| 16415 | _SFD_CH_SUBSTATE_INDEX(0,35); |
| 16416 | _SFD_CH_SUBSTATE_INDEX(1,79); |
| 16417 | _SFD_CH_SUBSTATE_INDEX(2,7); |
| 16418 | _SFD_CH_SUBSTATE_INDEX(3,87); |
| 16419 | _SFD_CH_SUBSTATE_INDEX(4,84); |
| 16420 | _SFD_CH_SUBSTATE_INDEX(5,4); |
| 16421 | _SFD_CH_SUBSTATE_INDEX(6,0); |
| 16422 | _SFD_ST_SUBSTATE_COUNT(35,5); |
| 16423 | _SFD_ST_SUBSTATE_INDEX(35,0,36); |
| 16424 | _SFD_ST_SUBSTATE_INDEX(35,1,48); |
| 16425 | _SFD_ST_SUBSTATE_INDEX(35,2,61); |
| 16426 | _SFD_ST_SUBSTATE_INDEX(35,3,73); |
| 16427 | _SFD_ST_SUBSTATE_INDEX(35,4,74); |
| 16428 | _SFD_ST_SUBSTATE_COUNT(36,2); |
| 16429 | _SFD_ST_SUBSTATE_INDEX(36,0,37); |
| 16430 | _SFD_ST_SUBSTATE_INDEX(36,1,47); |
| 16431 | _SFD_ST_SUBSTATE_COUNT(37,2); |
| 16432 | _SFD_ST_SUBSTATE_INDEX(37,0,38); |
| 16433 | _SFD_ST_SUBSTATE_INDEX(37,1,45); |
| 16434 | _SFD_ST_SUBSTATE_COUNT(38,5); |
| 16435 | _SFD_ST_SUBSTATE_INDEX(38,0,39); |
| 16436 | _SFD_ST_SUBSTATE_INDEX(38,1,40); |
| 16437 | _SFD_ST_SUBSTATE_INDEX(38,2,41); |
| 16438 | _SFD_ST_SUBSTATE_INDEX(38,3,42); |
| 16439 | _SFD_ST_SUBSTATE_INDEX(38,4,43); |
| 16440 | _SFD_ST_SUBSTATE_COUNT(39,0); |
| 16441 | _SFD_ST_SUBSTATE_COUNT(40,0); |
| 16442 | _SFD_ST_SUBSTATE_COUNT(41,0); |
| 16443 | _SFD_ST_SUBSTATE_COUNT(42,0); |
| 16444 | _SFD_ST_SUBSTATE_COUNT(43,0); |
| 16445 | _SFD_ST_SUBSTATE_COUNT(45,0); |
| 16446 | _SFD_ST_SUBSTATE_COUNT(47,0); |
| 16447 | _SFD_ST_SUBSTATE_COUNT(48,2); |
| 16448 | _SFD_ST_SUBSTATE_INDEX(48,0,49); |
| 16449 | _SFD_ST_SUBSTATE_INDEX(48,1,50); |
| 16450 | _SFD_ST_SUBSTATE_COUNT(49,0); |
| 16451 | _SFD_ST_SUBSTATE_COUNT(50,2); |
| 16452 | _SFD_ST_SUBSTATE_INDEX(50,0,51); |
| 16453 | _SFD_ST_SUBSTATE_INDEX(50,1,59); |
| 16454 | _SFD_ST_SUBSTATE_COUNT(51,5); |
| 16455 | _SFD_ST_SUBSTATE_INDEX(51,0,52); |
| 16456 | _SFD_ST_SUBSTATE_INDEX(51,1,53); |
| 16457 | _SFD_ST_SUBSTATE_INDEX(51,2,54); |
| 16458 | _SFD_ST_SUBSTATE_INDEX(51,3,55); |
| 16459 | _SFD_ST_SUBSTATE_INDEX(51,4,56); |
| 16460 | _SFD_ST_SUBSTATE_COUNT(52,0); |
| 16461 | _SFD_ST_SUBSTATE_COUNT(53,0); |
| 16462 | _SFD_ST_SUBSTATE_COUNT(54,0); |
| 16463 | _SFD_ST_SUBSTATE_COUNT(55,0); |
| 16464 | _SFD_ST_SUBSTATE_COUNT(56,0); |
| 16465 | _SFD_ST_SUBSTATE_COUNT(59,0); |
| 16466 | _SFD_ST_SUBSTATE_COUNT(61,2); |
| 16467 | _SFD_ST_SUBSTATE_INDEX(61,0,62); |
| 16468 | _SFD_ST_SUBSTATE_INDEX(61,1,63); |
| 16469 | _SFD_ST_SUBSTATE_COUNT(62,0); |
| 16470 | _SFD_ST_SUBSTATE_COUNT(63,2); |
| 16471 | _SFD_ST_SUBSTATE_INDEX(63,0,64); |
| 16472 | _SFD_ST_SUBSTATE_INDEX(63,1,71); |
| 16473 | _SFD_ST_SUBSTATE_COUNT(64,5); |
| 16474 | _SFD_ST_SUBSTATE_INDEX(64,0,65); |
| 16475 | _SFD_ST_SUBSTATE_INDEX(64,1,66); |
| 16476 | _SFD_ST_SUBSTATE_INDEX(64,2,67); |
| 16477 | _SFD_ST_SUBSTATE_INDEX(64,3,68); |
| 16478 | _SFD_ST_SUBSTATE_INDEX(64,4,69); |
| 16479 | _SFD_ST_SUBSTATE_COUNT(65,0); |
| 16480 | _SFD_ST_SUBSTATE_COUNT(66,0); |
| 16481 | _SFD_ST_SUBSTATE_COUNT(67,0); |
| 16482 | _SFD_ST_SUBSTATE_COUNT(68,0); |
| 16483 | _SFD_ST_SUBSTATE_COUNT(69,0); |
| 16484 | _SFD_ST_SUBSTATE_COUNT(71,0); |
| 16485 | _SFD_ST_SUBSTATE_COUNT(73,0); |
| 16486 | _SFD_ST_SUBSTATE_COUNT(74,2); |
| 16487 | _SFD_ST_SUBSTATE_INDEX(74,0,75); |
| 16488 | _SFD_ST_SUBSTATE_INDEX(74,1,76); |
| 16489 | _SFD_ST_SUBSTATE_COUNT(75,0); |
| 16490 | _SFD_ST_SUBSTATE_COUNT(76,0); |
| 16491 | _SFD_ST_SUBSTATE_COUNT(79,4); |
| 16492 | _SFD_ST_SUBSTATE_INDEX(79,0,80); |
| 16493 | _SFD_ST_SUBSTATE_INDEX(79,1,81); |
| 16494 | _SFD_ST_SUBSTATE_INDEX(79,2,82); |
| 16495 | _SFD_ST_SUBSTATE_INDEX(79,3,83); |
| 16496 | _SFD_ST_SUBSTATE_COUNT(80,0); |
| 16497 | _SFD_ST_SUBSTATE_COUNT(81,0); |
| 16498 | _SFD_ST_SUBSTATE_COUNT(82,0); |
| 16499 | _SFD_ST_SUBSTATE_COUNT(83,0); |
| 16500 | _SFD_ST_SUBSTATE_COUNT(7,6); |
| 16501 | _SFD_ST_SUBSTATE_INDEX(7,0,8); |
| 16502 | _SFD_ST_SUBSTATE_INDEX(7,1,18); |
| 16503 | _SFD_ST_SUBSTATE_INDEX(7,2,20); |
| 16504 | _SFD_ST_SUBSTATE_INDEX(7,3,21); |
| 16505 | _SFD_ST_SUBSTATE_INDEX(7,4,22); |
| 16506 | _SFD_ST_SUBSTATE_INDEX(7,5,33); |
| 16507 | _SFD_ST_SUBSTATE_COUNT(8,4); |
| 16508 | _SFD_ST_SUBSTATE_INDEX(8,0,9); |
| 16509 | _SFD_ST_SUBSTATE_INDEX(8,1,12); |
| 16510 | _SFD_ST_SUBSTATE_INDEX(8,2,13); |
| 16511 | _SFD_ST_SUBSTATE_INDEX(8,3,14); |
| 16512 | _SFD_ST_SUBSTATE_COUNT(9,2); |
| 16513 | _SFD_ST_SUBSTATE_INDEX(9,0,10); |
| 16514 | _SFD_ST_SUBSTATE_INDEX(9,1,11); |
| 16515 | _SFD_ST_SUBSTATE_COUNT(10,0); |
| 16516 | _SFD_ST_SUBSTATE_COUNT(11,0); |
| 16517 | _SFD_ST_SUBSTATE_COUNT(12,0); |
| 16518 | _SFD_ST_SUBSTATE_COUNT(13,0); |
| 16519 | _SFD_ST_SUBSTATE_COUNT(14,3); |
| 16520 | _SFD_ST_SUBSTATE_INDEX(14,0,15); |
| 16521 | _SFD_ST_SUBSTATE_INDEX(14,1,16); |
| 16522 | _SFD_ST_SUBSTATE_INDEX(14,2,17); |
| 16523 | _SFD_ST_SUBSTATE_COUNT(15,0); |
| 16524 | _SFD_ST_SUBSTATE_COUNT(16,0); |
| 16525 | _SFD_ST_SUBSTATE_COUNT(17,0); |
| 16526 | _SFD_ST_SUBSTATE_COUNT(18,0); |
| 16527 | _SFD_ST_SUBSTATE_COUNT(20,0); |
| 16528 | _SFD_ST_SUBSTATE_COUNT(21,0); |
| 16529 | _SFD_ST_SUBSTATE_COUNT(22,4); |
| 16530 | _SFD_ST_SUBSTATE_INDEX(22,0,23); |
| 16531 | _SFD_ST_SUBSTATE_INDEX(22,1,24); |
| 16532 | _SFD_ST_SUBSTATE_INDEX(22,2,27); |
| 16533 | _SFD_ST_SUBSTATE_INDEX(22,3,30); |
| 16534 | _SFD_ST_SUBSTATE_COUNT(23,0); |
| 16535 | _SFD_ST_SUBSTATE_COUNT(24,2); |
| 16536 | _SFD_ST_SUBSTATE_INDEX(24,0,25); |
| 16537 | _SFD_ST_SUBSTATE_INDEX(24,1,26); |
| 16538 | _SFD_ST_SUBSTATE_COUNT(25,0); |
| 16539 | _SFD_ST_SUBSTATE_COUNT(26,0); |
| 16540 | _SFD_ST_SUBSTATE_COUNT(27,2); |
| 16541 | _SFD_ST_SUBSTATE_INDEX(27,0,28); |
| 16542 | _SFD_ST_SUBSTATE_INDEX(27,1,29); |
| 16543 | _SFD_ST_SUBSTATE_COUNT(28,0); |
| 16544 | _SFD_ST_SUBSTATE_COUNT(29,0); |
| 16545 | _SFD_ST_SUBSTATE_COUNT(30,2); |
| 16546 | _SFD_ST_SUBSTATE_INDEX(30,0,31); |
| 16547 | _SFD_ST_SUBSTATE_INDEX(30,1,32); |
| 16548 | _SFD_ST_SUBSTATE_COUNT(31,0); |
| 16549 | _SFD_ST_SUBSTATE_COUNT(32,0); |
| 16550 | _SFD_ST_SUBSTATE_COUNT(33,0); |
| 16551 | _SFD_ST_SUBSTATE_COUNT(87,3); |
| 16552 | _SFD_ST_SUBSTATE_INDEX(87,0,88); |
| 16553 | _SFD_ST_SUBSTATE_INDEX(87,1,89); |
| 16554 | _SFD_ST_SUBSTATE_INDEX(87,2,90); |
| 16555 | _SFD_ST_SUBSTATE_COUNT(88,0); |
| 16556 | _SFD_ST_SUBSTATE_COUNT(89,0); |
| 16557 | _SFD_ST_SUBSTATE_COUNT(90,0); |
| 16558 | _SFD_ST_SUBSTATE_COUNT(84,1); |
| 16559 | _SFD_ST_SUBSTATE_INDEX(84,0,85); |
| 16560 | _SFD_ST_SUBSTATE_COUNT(85,0); |
| 16561 | _SFD_ST_SUBSTATE_COUNT(4,2); |
| 16562 | _SFD_ST_SUBSTATE_INDEX(4,0,5); |
| 16563 | _SFD_ST_SUBSTATE_INDEX(4,1,6); |
| 16564 | _SFD_ST_SUBSTATE_COUNT(5,0); |
| 16565 | _SFD_ST_SUBSTATE_COUNT(6,0); |
| 16566 | _SFD_ST_SUBSTATE_COUNT(0,2); |
| 16567 | _SFD_ST_SUBSTATE_INDEX(0,0,1); |
| 16568 | _SFD_ST_SUBSTATE_INDEX(0,1,2); |
| 16569 | _SFD_ST_SUBSTATE_COUNT(1,0); |
| 16570 | _SFD_ST_SUBSTATE_COUNT(2,0); |
| 16571 | } |
| 16572 | |
| 16573 | _SFD_CV_INIT_CHART(7,0,0,0); |
| 16574 | |
| 16575 | { |
| 16576 | _SFD_CV_INIT_STATE(0,2,1,0,0,0,NULL,NULL); |
| 16577 | } |
| 16578 | |
| 16579 | { |
| 16580 | _SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL); |
| 16581 | } |
| 16582 | |
| 16583 | { |
| 16584 | _SFD_CV_INIT_STATE(2,0,0,0,0,0,NULL,NULL); |
| 16585 | } |
| 16586 | |
| 16587 | { |
| 16588 | _SFD_CV_INIT_STATE(4,2,1,0,0,0,NULL,NULL); |
| 16589 | } |
| 16590 | |
| 16591 | { |
| 16592 | _SFD_CV_INIT_STATE(5,0,0,0,0,0,NULL,NULL); |
| 16593 | } |
| 16594 | |
| 16595 | { |
| 16596 | _SFD_CV_INIT_STATE(6,0,0,0,0,0,NULL,NULL); |
| 16597 | } |
| 16598 | |
| 16599 | { |
| 16600 | _SFD_CV_INIT_STATE(7,6,1,0,0,0,NULL,NULL); |
| 16601 | } |
| 16602 | |
| 16603 | { |
| 16604 | _SFD_CV_INIT_STATE(8,4,1,0,0,0,NULL,NULL); |
| 16605 | } |
| 16606 | |
| 16607 | { |
| 16608 | _SFD_CV_INIT_STATE(9,2,1,1,0,0,NULL,NULL); |
| 16609 | } |
| 16610 | |
| 16611 | { |
| 16612 | static unsigned int sStartSaturateMap[] = { 91 }; |
| 16613 | |
| 16614 | static unsigned int sEndSaturateMap[] = { 92 }; |
| 16615 | |
| 16616 | _SFD_CV_INIT_STATE_SATURATION(9,1,&(sStartSaturateMap[0]), |
| 16617 | &(sEndSaturateMap[0])); |
| 16618 | } |
| 16619 | |
| 16620 | { |
| 16621 | _SFD_CV_INIT_STATE(10,0,0,0,0,0,NULL,NULL); |
| 16622 | } |
| 16623 | |
| 16624 | { |
| 16625 | _SFD_CV_INIT_STATE(11,0,0,0,0,0,NULL,NULL); |
| 16626 | } |
| 16627 | |
| 16628 | { |
| 16629 | _SFD_CV_INIT_STATE(12,0,0,0,0,0,NULL,NULL); |
| 16630 | } |
| 16631 | |
| 16632 | { |
| 16633 | static unsigned int sStartSaturateMap[] = { 119 }; |
| 16634 | |
| 16635 | static unsigned int sEndSaturateMap[] = { 120 }; |
| 16636 | |
| 16637 | _SFD_CV_INIT_STATE_SATURATION(12,1,&(sStartSaturateMap[0]), |
| 16638 | &(sEndSaturateMap[0])); |
| 16639 | } |
| 16640 | |
| 16641 | { |
| 16642 | _SFD_CV_INIT_STATE(13,0,0,0,0,0,NULL,NULL); |
| 16643 | } |
| 16644 | |
| 16645 | { |
| 16646 | static unsigned int sStartSaturateMap[] = { 141 }; |
| 16647 | |
| 16648 | static unsigned int sEndSaturateMap[] = { 142 }; |
| 16649 | |
| 16650 | _SFD_CV_INIT_STATE_SATURATION(13,1,&(sStartSaturateMap[0]), |
| 16651 | &(sEndSaturateMap[0])); |
| 16652 | } |
| 16653 | |
| 16654 | { |
| 16655 | _SFD_CV_INIT_STATE(14,3,1,1,0,0,NULL,NULL); |
| 16656 | } |
| 16657 | |
| 16658 | { |
| 16659 | static unsigned int sStartSaturateMap[] = { 92 }; |
| 16660 | |
| 16661 | static unsigned int sEndSaturateMap[] = { 93 }; |
| 16662 | |
| 16663 | _SFD_CV_INIT_STATE_SATURATION(14,1,&(sStartSaturateMap[0]), |
| 16664 | &(sEndSaturateMap[0])); |
| 16665 | } |
| 16666 | |
| 16667 | { |
| 16668 | _SFD_CV_INIT_STATE(15,0,0,0,0,0,NULL,NULL); |
| 16669 | } |
| 16670 | |
| 16671 | { |
| 16672 | _SFD_CV_INIT_STATE(16,0,0,0,0,0,NULL,NULL); |
| 16673 | } |
| 16674 | |
| 16675 | { |
| 16676 | _SFD_CV_INIT_STATE(17,0,0,0,0,0,NULL,NULL); |
| 16677 | } |
| 16678 | |
| 16679 | { |
| 16680 | _SFD_CV_INIT_STATE(18,0,0,0,0,0,NULL,NULL); |
| 16681 | } |
| 16682 | |
| 16683 | { |
| 16684 | _SFD_CV_INIT_STATE(20,0,0,0,0,0,NULL,NULL); |
| 16685 | } |
| 16686 | |
| 16687 | { |
| 16688 | _SFD_CV_INIT_STATE(21,0,0,0,0,0,NULL,NULL); |
| 16689 | } |
| 16690 | |
| 16691 | { |
| 16692 | _SFD_CV_INIT_STATE(22,4,1,0,0,0,NULL,NULL); |
| 16693 | } |
| 16694 | |
| 16695 | { |
| 16696 | _SFD_CV_INIT_STATE(23,0,0,0,0,0,NULL,NULL); |
| 16697 | } |
| 16698 | |
| 16699 | { |
| 16700 | static unsigned int sStartSaturateMap[] = { 114 }; |
| 16701 | |
| 16702 | static unsigned int sEndSaturateMap[] = { 115 }; |
| 16703 | |
| 16704 | _SFD_CV_INIT_STATE_SATURATION(23,1,&(sStartSaturateMap[0]), |
| 16705 | &(sEndSaturateMap[0])); |
| 16706 | } |
| 16707 | |
| 16708 | { |
| 16709 | _SFD_CV_INIT_STATE(24,2,1,1,0,0,NULL,NULL); |
| 16710 | } |
| 16711 | |
| 16712 | { |
| 16713 | static unsigned int sStartSaturateMap[] = { 89 }; |
| 16714 | |
| 16715 | static unsigned int sEndSaturateMap[] = { 90 }; |
| 16716 | |
| 16717 | _SFD_CV_INIT_STATE_SATURATION(24,1,&(sStartSaturateMap[0]), |
| 16718 | &(sEndSaturateMap[0])); |
| 16719 | } |
| 16720 | |
| 16721 | { |
| 16722 | _SFD_CV_INIT_STATE(25,0,0,0,0,0,NULL,NULL); |
| 16723 | } |
| 16724 | |
| 16725 | { |
| 16726 | _SFD_CV_INIT_STATE(26,0,0,0,0,0,NULL,NULL); |
| 16727 | } |
| 16728 | |
| 16729 | { |
| 16730 | _SFD_CV_INIT_STATE(27,2,1,1,0,0,NULL,NULL); |
| 16731 | } |
| 16732 | |
| 16733 | { |
| 16734 | static unsigned int sStartSaturateMap[] = { 92 }; |
| 16735 | |
| 16736 | static unsigned int sEndSaturateMap[] = { 93 }; |
| 16737 | |
| 16738 | _SFD_CV_INIT_STATE_SATURATION(27,1,&(sStartSaturateMap[0]), |
| 16739 | &(sEndSaturateMap[0])); |
| 16740 | } |
| 16741 | |
| 16742 | { |
| 16743 | _SFD_CV_INIT_STATE(28,0,0,0,0,0,NULL,NULL); |
| 16744 | } |
| 16745 | |
| 16746 | { |
| 16747 | _SFD_CV_INIT_STATE(29,0,0,0,0,0,NULL,NULL); |
| 16748 | } |
| 16749 | |
| 16750 | { |
| 16751 | _SFD_CV_INIT_STATE(30,2,1,1,0,0,NULL,NULL); |
| 16752 | } |
| 16753 | |
| 16754 | { |
| 16755 | static unsigned int sStartSaturateMap[] = { 52, 94 }; |
| 16756 | |
| 16757 | static unsigned int sEndSaturateMap[] = { 53, 95 }; |
| 16758 | |
| 16759 | _SFD_CV_INIT_STATE_SATURATION(30,2,&(sStartSaturateMap[0]), |
| 16760 | &(sEndSaturateMap[0])); |
| 16761 | } |
| 16762 | |
| 16763 | { |
| 16764 | _SFD_CV_INIT_STATE(31,0,0,0,0,0,NULL,NULL); |
| 16765 | } |
| 16766 | |
| 16767 | { |
| 16768 | _SFD_CV_INIT_STATE(32,0,0,0,0,0,NULL,NULL); |
| 16769 | } |
| 16770 | |
| 16771 | { |
| 16772 | _SFD_CV_INIT_STATE(33,0,0,0,0,0,NULL,NULL); |
| 16773 | } |
| 16774 | |
| 16775 | { |
| 16776 | _SFD_CV_INIT_STATE(35,5,1,0,0,0,NULL,NULL); |
| 16777 | } |
| 16778 | |
| 16779 | { |
| 16780 | _SFD_CV_INIT_STATE(36,2,1,1,0,0,NULL,NULL); |
| 16781 | } |
| 16782 | |
| 16783 | { |
| 16784 | _SFD_CV_INIT_STATE(37,2,1,1,0,0,NULL,NULL); |
| 16785 | } |
| 16786 | |
| 16787 | { |
| 16788 | _SFD_CV_INIT_STATE(38,5,1,1,0,0,NULL,NULL); |
| 16789 | } |
| 16790 | |
| 16791 | { |
| 16792 | _SFD_CV_INIT_STATE(39,0,0,0,0,0,NULL,NULL); |
| 16793 | } |
| 16794 | |
| 16795 | { |
| 16796 | static unsigned int sStartSaturateMap[] = { 129 }; |
| 16797 | |
| 16798 | static unsigned int sEndSaturateMap[] = { 130 }; |
| 16799 | |
| 16800 | _SFD_CV_INIT_STATE_SATURATION(39,1,&(sStartSaturateMap[0]), |
| 16801 | &(sEndSaturateMap[0])); |
| 16802 | } |
| 16803 | |
| 16804 | { |
| 16805 | _SFD_CV_INIT_STATE(40,0,0,0,0,0,NULL,NULL); |
| 16806 | } |
| 16807 | |
| 16808 | { |
| 16809 | static unsigned int sStartSaturateMap[] = { 143, 213, 87 }; |
| 16810 | |
| 16811 | static unsigned int sEndSaturateMap[] = { 144, 214, 92 }; |
| 16812 | |
| 16813 | _SFD_CV_INIT_STATE_SATURATION(40,3,&(sStartSaturateMap[0]), |
| 16814 | &(sEndSaturateMap[0])); |
| 16815 | } |
| 16816 | |
| 16817 | { |
| 16818 | _SFD_CV_INIT_STATE(41,0,0,0,0,0,NULL,NULL); |
| 16819 | } |
| 16820 | |
| 16821 | { |
| 16822 | static unsigned int sStartSaturateMap[] = { 60 }; |
| 16823 | |
| 16824 | static unsigned int sEndSaturateMap[] = { 68 }; |
| 16825 | |
| 16826 | _SFD_CV_INIT_STATE_SATURATION(41,1,&(sStartSaturateMap[0]), |
| 16827 | &(sEndSaturateMap[0])); |
| 16828 | } |
| 16829 | |
| 16830 | { |
| 16831 | _SFD_CV_INIT_STATE(42,0,0,0,0,0,NULL,NULL); |
| 16832 | } |
| 16833 | |
| 16834 | { |
| 16835 | static unsigned int sStartSaturateMap[] = { 155 }; |
| 16836 | |
| 16837 | static unsigned int sEndSaturateMap[] = { 156 }; |
| 16838 | |
| 16839 | _SFD_CV_INIT_STATE_SATURATION(42,1,&(sStartSaturateMap[0]), |
| 16840 | &(sEndSaturateMap[0])); |
| 16841 | } |
| 16842 | |
| 16843 | { |
| 16844 | _SFD_CV_INIT_STATE(43,0,0,0,0,0,NULL,NULL); |
| 16845 | } |
| 16846 | |
| 16847 | { |
| 16848 | static unsigned int sStartSaturateMap[] = { 120, 284, 320, 457 }; |
| 16849 | |
| 16850 | static unsigned int sEndSaturateMap[] = { 125, 285, 321, 458 }; |
| 16851 | |
| 16852 | _SFD_CV_INIT_STATE_SATURATION(43,4,&(sStartSaturateMap[0]), |
| 16853 | &(sEndSaturateMap[0])); |
| 16854 | } |
| 16855 | |
| 16856 | { |
| 16857 | _SFD_CV_INIT_STATE(45,0,0,0,0,0,NULL,NULL); |
| 16858 | } |
| 16859 | |
| 16860 | { |
| 16861 | _SFD_CV_INIT_STATE(47,0,0,0,0,0,NULL,NULL); |
| 16862 | } |
| 16863 | |
| 16864 | { |
| 16865 | _SFD_CV_INIT_STATE(48,2,1,1,0,0,NULL,NULL); |
| 16866 | } |
| 16867 | |
| 16868 | { |
| 16869 | _SFD_CV_INIT_STATE(49,0,0,0,0,0,NULL,NULL); |
| 16870 | } |
| 16871 | |
| 16872 | { |
| 16873 | _SFD_CV_INIT_STATE(50,2,1,1,0,0,NULL,NULL); |
| 16874 | } |
| 16875 | |
| 16876 | { |
| 16877 | _SFD_CV_INIT_STATE(51,5,1,1,0,0,NULL,NULL); |
| 16878 | } |
| 16879 | |
| 16880 | { |
| 16881 | _SFD_CV_INIT_STATE(52,0,0,0,0,0,NULL,NULL); |
| 16882 | } |
| 16883 | |
| 16884 | { |
| 16885 | static unsigned int sStartSaturateMap[] = { 139 }; |
| 16886 | |
| 16887 | static unsigned int sEndSaturateMap[] = { 140 }; |
| 16888 | |
| 16889 | _SFD_CV_INIT_STATE_SATURATION(52,1,&(sStartSaturateMap[0]), |
| 16890 | &(sEndSaturateMap[0])); |
| 16891 | } |
| 16892 | |
| 16893 | { |
| 16894 | _SFD_CV_INIT_STATE(53,0,0,0,0,0,NULL,NULL); |
| 16895 | } |
| 16896 | |
| 16897 | { |
| 16898 | static unsigned int sStartSaturateMap[] = { 32 }; |
| 16899 | |
| 16900 | static unsigned int sEndSaturateMap[] = { 36 }; |
| 16901 | |
| 16902 | _SFD_CV_INIT_STATE_SATURATION(53,1,&(sStartSaturateMap[0]), |
| 16903 | &(sEndSaturateMap[0])); |
| 16904 | } |
| 16905 | |
| 16906 | { |
| 16907 | _SFD_CV_INIT_STATE(54,0,0,0,0,0,NULL,NULL); |
| 16908 | } |
| 16909 | |
| 16910 | { |
| 16911 | _SFD_CV_INIT_STATE(55,0,0,0,0,0,NULL,NULL); |
| 16912 | } |
| 16913 | |
| 16914 | { |
| 16915 | static unsigned int sStartSaturateMap[] = { 64 }; |
| 16916 | |
| 16917 | static unsigned int sEndSaturateMap[] = { 72 }; |
| 16918 | |
| 16919 | _SFD_CV_INIT_STATE_SATURATION(55,1,&(sStartSaturateMap[0]), |
| 16920 | &(sEndSaturateMap[0])); |
| 16921 | } |
| 16922 | |
| 16923 | { |
| 16924 | _SFD_CV_INIT_STATE(56,0,0,0,0,0,NULL,NULL); |
| 16925 | } |
| 16926 | |
| 16927 | { |
| 16928 | static unsigned int sStartSaturateMap[] = { 165 }; |
| 16929 | |
| 16930 | static unsigned int sEndSaturateMap[] = { 166 }; |
| 16931 | |
| 16932 | _SFD_CV_INIT_STATE_SATURATION(56,1,&(sStartSaturateMap[0]), |
| 16933 | &(sEndSaturateMap[0])); |
| 16934 | } |
| 16935 | |
| 16936 | { |
| 16937 | _SFD_CV_INIT_STATE(59,0,0,0,0,0,NULL,NULL); |
| 16938 | } |
| 16939 | |
| 16940 | { |
| 16941 | _SFD_CV_INIT_STATE(61,2,1,1,0,0,NULL,NULL); |
| 16942 | } |
| 16943 | |
| 16944 | { |
| 16945 | _SFD_CV_INIT_STATE(62,0,0,0,0,0,NULL,NULL); |
| 16946 | } |
| 16947 | |
| 16948 | { |
| 16949 | _SFD_CV_INIT_STATE(63,2,1,1,0,0,NULL,NULL); |
| 16950 | } |
| 16951 | |
| 16952 | { |
| 16953 | _SFD_CV_INIT_STATE(64,5,1,1,0,0,NULL,NULL); |
| 16954 | } |
| 16955 | |
| 16956 | { |
| 16957 | _SFD_CV_INIT_STATE(65,0,0,0,0,0,NULL,NULL); |
| 16958 | } |
| 16959 | |
| 16960 | { |
| 16961 | static unsigned int sStartSaturateMap[] = { 139 }; |
| 16962 | |
| 16963 | static unsigned int sEndSaturateMap[] = { 140 }; |
| 16964 | |
| 16965 | _SFD_CV_INIT_STATE_SATURATION(65,1,&(sStartSaturateMap[0]), |
| 16966 | &(sEndSaturateMap[0])); |
| 16967 | } |
| 16968 | |
| 16969 | { |
| 16970 | _SFD_CV_INIT_STATE(66,0,0,0,0,0,NULL,NULL); |
| 16971 | } |
| 16972 | |
| 16973 | { |
| 16974 | static unsigned int sStartSaturateMap[] = { 155, 233, 93 }; |
| 16975 | |
| 16976 | static unsigned int sEndSaturateMap[] = { 156, 234, 98 }; |
| 16977 | |
| 16978 | _SFD_CV_INIT_STATE_SATURATION(66,3,&(sStartSaturateMap[0]), |
| 16979 | &(sEndSaturateMap[0])); |
| 16980 | } |
| 16981 | |
| 16982 | { |
| 16983 | _SFD_CV_INIT_STATE(67,0,0,0,0,0,NULL,NULL); |
| 16984 | } |
| 16985 | |
| 16986 | { |
| 16987 | static unsigned int sStartSaturateMap[] = { 64 }; |
| 16988 | |
| 16989 | static unsigned int sEndSaturateMap[] = { 72 }; |
| 16990 | |
| 16991 | _SFD_CV_INIT_STATE_SATURATION(67,1,&(sStartSaturateMap[0]), |
| 16992 | &(sEndSaturateMap[0])); |
| 16993 | } |
| 16994 | |
| 16995 | { |
| 16996 | _SFD_CV_INIT_STATE(68,0,0,0,0,0,NULL,NULL); |
| 16997 | } |
| 16998 | |
| 16999 | { |
| 17000 | static unsigned int sStartSaturateMap[] = { 165 }; |
| 17001 | |
| 17002 | static unsigned int sEndSaturateMap[] = { 166 }; |
| 17003 | |
| 17004 | _SFD_CV_INIT_STATE_SATURATION(68,1,&(sStartSaturateMap[0]), |
| 17005 | &(sEndSaturateMap[0])); |
| 17006 | } |
| 17007 | |
| 17008 | { |
| 17009 | _SFD_CV_INIT_STATE(69,0,0,0,0,0,NULL,NULL); |
| 17010 | } |
| 17011 | |
| 17012 | { |
| 17013 | static unsigned int sStartSaturateMap[] = { 121, 287, 320, 464 }; |
| 17014 | |
| 17015 | static unsigned int sEndSaturateMap[] = { 126, 288, 321, 465 }; |
| 17016 | |
| 17017 | _SFD_CV_INIT_STATE_SATURATION(69,4,&(sStartSaturateMap[0]), |
| 17018 | &(sEndSaturateMap[0])); |
| 17019 | } |
| 17020 | |
| 17021 | { |
| 17022 | _SFD_CV_INIT_STATE(71,0,0,0,0,0,NULL,NULL); |
| 17023 | } |
| 17024 | |
| 17025 | { |
| 17026 | _SFD_CV_INIT_STATE(73,0,0,0,0,0,NULL,NULL); |
| 17027 | } |
| 17028 | |
| 17029 | { |
| 17030 | static unsigned int sStartSaturateMap[] = { 38 }; |
| 17031 | |
| 17032 | static unsigned int sEndSaturateMap[] = { 53 }; |
| 17033 | |
| 17034 | _SFD_CV_INIT_STATE_SATURATION(73,1,&(sStartSaturateMap[0]), |
| 17035 | &(sEndSaturateMap[0])); |
| 17036 | } |
| 17037 | |
| 17038 | { |
| 17039 | _SFD_CV_INIT_STATE(74,2,1,1,0,0,NULL,NULL); |
| 17040 | } |
| 17041 | |
| 17042 | { |
| 17043 | _SFD_CV_INIT_STATE(75,0,0,0,0,0,NULL,NULL); |
| 17044 | } |
| 17045 | |
| 17046 | { |
| 17047 | _SFD_CV_INIT_STATE(76,0,0,0,0,0,NULL,NULL); |
| 17048 | } |
| 17049 | |
| 17050 | { |
| 17051 | _SFD_CV_INIT_STATE(79,4,1,0,0,0,NULL,NULL); |
| 17052 | } |
| 17053 | |
| 17054 | { |
| 17055 | _SFD_CV_INIT_STATE(80,0,0,0,0,0,NULL,NULL); |
| 17056 | } |
| 17057 | |
| 17058 | { |
| 17059 | _SFD_CV_INIT_STATE(81,0,0,0,0,0,NULL,NULL); |
| 17060 | } |
| 17061 | |
| 17062 | { |
| 17063 | _SFD_CV_INIT_STATE(82,0,0,0,0,0,NULL,NULL); |
| 17064 | } |
| 17065 | |
| 17066 | { |
| 17067 | _SFD_CV_INIT_STATE(83,0,0,0,0,0,NULL,NULL); |
| 17068 | } |
| 17069 | |
| 17070 | { |
| 17071 | _SFD_CV_INIT_STATE(84,1,0,0,0,0,NULL,NULL); |
| 17072 | } |
| 17073 | |
| 17074 | { |
| 17075 | _SFD_CV_INIT_STATE(85,0,0,0,0,0,NULL,NULL); |
| 17076 | } |
| 17077 | |
| 17078 | { |
| 17079 | _SFD_CV_INIT_STATE(87,3,1,0,0,0,NULL,NULL); |
| 17080 | } |
| 17081 | |
| 17082 | { |
| 17083 | _SFD_CV_INIT_STATE(88,0,0,0,0,0,NULL,NULL); |
| 17084 | } |
| 17085 | |
| 17086 | { |
| 17087 | static unsigned int sStartSaturateMap[] = { 120 }; |
| 17088 | |
| 17089 | static unsigned int sEndSaturateMap[] = { 121 }; |
| 17090 | |
| 17091 | _SFD_CV_INIT_STATE_SATURATION(88,1,&(sStartSaturateMap[0]), |
| 17092 | &(sEndSaturateMap[0])); |
| 17093 | } |
| 17094 | |
| 17095 | { |
| 17096 | _SFD_CV_INIT_STATE(89,0,0,0,0,0,NULL,NULL); |
| 17097 | } |
| 17098 | |
| 17099 | { |
| 17100 | _SFD_CV_INIT_STATE(90,0,0,0,0,0,NULL,NULL); |
| 17101 | } |
| 17102 | |
| 17103 | { |
| 17104 | _SFD_CV_INIT_STATE(19,0,0,0,0,0,NULL,NULL); |
| 17105 | } |
| 17106 | |
| 17107 | { |
| 17108 | _SFD_CV_INIT_STATE(34,0,0,0,0,0,NULL,NULL); |
| 17109 | } |
| 17110 | |
| 17111 | { |
| 17112 | _SFD_CV_INIT_STATE(44,0,0,0,0,0,NULL,NULL); |
| 17113 | } |
| 17114 | |
| 17115 | { |
| 17116 | _SFD_CV_INIT_STATE(46,0,0,0,0,0,NULL,NULL); |
| 17117 | } |
| 17118 | |
| 17119 | { |
| 17120 | _SFD_CV_INIT_STATE(57,0,0,0,0,0,NULL,NULL); |
| 17121 | } |
| 17122 | |
| 17123 | { |
| 17124 | _SFD_CV_INIT_STATE(58,0,0,0,0,0,NULL,NULL); |
| 17125 | } |
| 17126 | |
| 17127 | { |
| 17128 | _SFD_CV_INIT_STATE(60,0,0,0,0,0,NULL,NULL); |
| 17129 | } |
| 17130 | |
| 17131 | { |
| 17132 | _SFD_CV_INIT_STATE(70,0,0,0,0,0,NULL,NULL); |
| 17133 | } |
| 17134 | |
| 17135 | { |
| 17136 | _SFD_CV_INIT_STATE(72,0,0,0,0,0,NULL,NULL); |
| 17137 | } |
| 17138 | |
| 17139 | { |
| 17140 | _SFD_CV_INIT_STATE(77,0,0,0,0,0,NULL,NULL); |
| 17141 | } |
| 17142 | |
| 17143 | { |
| 17144 | _SFD_CV_INIT_STATE(78,0,0,0,0,0,NULL,NULL); |
| 17145 | } |
| 17146 | |
| 17147 | { |
| 17148 | _SFD_CV_INIT_STATE(86,0,0,0,0,0,NULL,NULL); |
| 17149 | } |
| 17150 | |
| 17151 | { |
| 17152 | _SFD_CV_INIT_STATE(3,0,0,0,0,0,NULL,NULL); |
| 17153 | } |
| 17154 | |
| 17155 | _SFD_CV_INIT_TRANS(145,0,NULL,NULL,0,NULL); |
| 17156 | _SFD_CV_INIT_TRANS(78,0,NULL,NULL,0,NULL); |
| 17157 | |
| 17158 | { |
| 17159 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17160 | |
| 17161 | static unsigned int sEndGuardMap[] = { 20 }; |
| 17162 | |
| 17163 | static int sPostFixPredicateTree[] = { 0 }; |
| 17164 | |
| 17165 | _SFD_CV_INIT_TRANS(79,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17166 | &(sPostFixPredicateTree[0])); |
| 17167 | } |
| 17168 | |
| 17169 | { |
| 17170 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17171 | |
| 17172 | static unsigned int sEndRelationalopMap[] = { 20 }; |
| 17173 | |
| 17174 | static int sRelationalopEps[] = { 0 }; |
| 17175 | |
| 17176 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 17177 | |
| 17178 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(79,1,&(sStartRelationalopMap[0]), |
| 17179 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17180 | &(sRelationalopType[0])); |
| 17181 | } |
| 17182 | |
| 17183 | { |
| 17184 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17185 | |
| 17186 | static unsigned int sEndGuardMap[] = { 29 }; |
| 17187 | |
| 17188 | static int sPostFixPredicateTree[] = { 0 }; |
| 17189 | |
| 17190 | _SFD_CV_INIT_TRANS(137,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17191 | &(sPostFixPredicateTree[0])); |
| 17192 | } |
| 17193 | |
| 17194 | _SFD_CV_INIT_TRANS(138,0,NULL,NULL,0,NULL); |
| 17195 | |
| 17196 | { |
| 17197 | static unsigned int sStartGuardMap[] = { 1, 33 }; |
| 17198 | |
| 17199 | static unsigned int sEndGuardMap[] = { 29, 61 }; |
| 17200 | |
| 17201 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17202 | |
| 17203 | _SFD_CV_INIT_TRANS(143,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17204 | &(sPostFixPredicateTree[0])); |
| 17205 | } |
| 17206 | |
| 17207 | { |
| 17208 | static unsigned int sStartRelationalopMap[] = { 1, 33 }; |
| 17209 | |
| 17210 | static unsigned int sEndRelationalopMap[] = { 29, 61 }; |
| 17211 | |
| 17212 | static int sRelationalopEps[] = { 0, 0 }; |
| 17213 | |
| 17214 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 17215 | 1, 1, 1, 1, 1, 1 }; |
| 17216 | |
| 17217 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(143,2,&(sStartRelationalopMap[0]), |
| 17218 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17219 | &(sRelationalopType[0])); |
| 17220 | } |
| 17221 | |
| 17222 | { |
| 17223 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 17224 | |
| 17225 | static unsigned int sEndGuardMap[] = { 28, 60 }; |
| 17226 | |
| 17227 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17228 | |
| 17229 | _SFD_CV_INIT_TRANS(179,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17230 | &(sPostFixPredicateTree[0])); |
| 17231 | } |
| 17232 | |
| 17233 | { |
| 17234 | static unsigned int sStartRelationalopMap[] = { 1, 32 }; |
| 17235 | |
| 17236 | static unsigned int sEndRelationalopMap[] = { 28, 60 }; |
| 17237 | |
| 17238 | static int sRelationalopEps[] = { 0, 0 }; |
| 17239 | |
| 17240 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 17241 | 1, 1, 1, 1, 1, 1 }; |
| 17242 | |
| 17243 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(179,2,&(sStartRelationalopMap[0]), |
| 17244 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17245 | &(sRelationalopType[0])); |
| 17246 | } |
| 17247 | |
| 17248 | { |
| 17249 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 17250 | |
| 17251 | static unsigned int sEndGuardMap[] = { 28, 60 }; |
| 17252 | |
| 17253 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17254 | |
| 17255 | _SFD_CV_INIT_TRANS(187,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17256 | &(sPostFixPredicateTree[0])); |
| 17257 | } |
| 17258 | |
| 17259 | { |
| 17260 | static unsigned int sStartRelationalopMap[] = { 1, 32 }; |
| 17261 | |
| 17262 | static unsigned int sEndRelationalopMap[] = { 28, 60 }; |
| 17263 | |
| 17264 | static int sRelationalopEps[] = { 0, 0 }; |
| 17265 | |
| 17266 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 17267 | 1, 1, 1, 1, 1, 1 }; |
| 17268 | |
| 17269 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(187,2,&(sStartRelationalopMap[0]), |
| 17270 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17271 | &(sRelationalopType[0])); |
| 17272 | } |
| 17273 | |
| 17274 | { |
| 17275 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 17276 | |
| 17277 | static unsigned int sEndGuardMap[] = { 28, 60 }; |
| 17278 | |
| 17279 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17280 | |
| 17281 | _SFD_CV_INIT_TRANS(144,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17282 | &(sPostFixPredicateTree[0])); |
| 17283 | } |
| 17284 | |
| 17285 | { |
| 17286 | static unsigned int sStartRelationalopMap[] = { 1, 32 }; |
| 17287 | |
| 17288 | static unsigned int sEndRelationalopMap[] = { 28, 60 }; |
| 17289 | |
| 17290 | static int sRelationalopEps[] = { 0, 0 }; |
| 17291 | |
| 17292 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 17293 | 1, 1, 1, 1, 1, 1 }; |
| 17294 | |
| 17295 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(144,2,&(sStartRelationalopMap[0]), |
| 17296 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17297 | &(sRelationalopType[0])); |
| 17298 | } |
| 17299 | |
| 17300 | { |
| 17301 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17302 | |
| 17303 | static unsigned int sEndGuardMap[] = { 27 }; |
| 17304 | |
| 17305 | static int sPostFixPredicateTree[] = { 0 }; |
| 17306 | |
| 17307 | _SFD_CV_INIT_TRANS(139,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17308 | &(sPostFixPredicateTree[0])); |
| 17309 | } |
| 17310 | |
| 17311 | _SFD_CV_INIT_TRANS(140,0,NULL,NULL,0,NULL); |
| 17312 | _SFD_CV_INIT_TRANS(178,0,NULL,NULL,0,NULL); |
| 17313 | |
| 17314 | { |
| 17315 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17316 | |
| 17317 | static unsigned int sEndGuardMap[] = { 32 }; |
| 17318 | |
| 17319 | static int sPostFixPredicateTree[] = { 0 }; |
| 17320 | |
| 17321 | _SFD_CV_INIT_TRANS(141,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17322 | &(sPostFixPredicateTree[0])); |
| 17323 | } |
| 17324 | |
| 17325 | _SFD_CV_INIT_TRANS(177,0,NULL,NULL,0,NULL); |
| 17326 | _SFD_CV_INIT_TRANS(186,0,NULL,NULL,0,NULL); |
| 17327 | |
| 17328 | { |
| 17329 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17330 | |
| 17331 | static unsigned int sEndGuardMap[] = { 25 }; |
| 17332 | |
| 17333 | static int sPostFixPredicateTree[] = { 0 }; |
| 17334 | |
| 17335 | _SFD_CV_INIT_TRANS(185,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17336 | &(sPostFixPredicateTree[0])); |
| 17337 | } |
| 17338 | |
| 17339 | _SFD_CV_INIT_TRANS(136,0,NULL,NULL,0,NULL); |
| 17340 | _SFD_CV_INIT_TRANS(126,0,NULL,NULL,0,NULL); |
| 17341 | |
| 17342 | { |
| 17343 | static unsigned int sStartGuardMap[] = { 1, 34 }; |
| 17344 | |
| 17345 | static unsigned int sEndGuardMap[] = { 30, 62 }; |
| 17346 | |
| 17347 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17348 | |
| 17349 | _SFD_CV_INIT_TRANS(127,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17350 | &(sPostFixPredicateTree[0])); |
| 17351 | } |
| 17352 | |
| 17353 | { |
| 17354 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17355 | |
| 17356 | static unsigned int sEndRelationalopMap[] = { 30 }; |
| 17357 | |
| 17358 | static int sRelationalopEps[] = { 0 }; |
| 17359 | |
| 17360 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 17361 | |
| 17362 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(127,1,&(sStartRelationalopMap[0]), |
| 17363 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17364 | &(sRelationalopType[0])); |
| 17365 | } |
| 17366 | |
| 17367 | _SFD_CV_INIT_TRANS(128,0,NULL,NULL,0,NULL); |
| 17368 | _SFD_CV_INIT_TRANS(129,0,NULL,NULL,0,NULL); |
| 17369 | |
| 17370 | { |
| 17371 | static unsigned int sStartGuardMap[] = { 3, 34, 68 }; |
| 17372 | |
| 17373 | static unsigned int sEndGuardMap[] = { 29, 63, 99 }; |
| 17374 | |
| 17375 | static int sPostFixPredicateTree[] = { 0, -1, 1, -1, -3, 2, -2 }; |
| 17376 | |
| 17377 | _SFD_CV_INIT_TRANS(130,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),7, |
| 17378 | &(sPostFixPredicateTree[0])); |
| 17379 | } |
| 17380 | |
| 17381 | _SFD_CV_INIT_TRANS(131,0,NULL,NULL,0,NULL); |
| 17382 | _SFD_CV_INIT_TRANS(132,0,NULL,NULL,0,NULL); |
| 17383 | _SFD_CV_INIT_TRANS(122,0,NULL,NULL,0,NULL); |
| 17384 | |
| 17385 | { |
| 17386 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17387 | |
| 17388 | static unsigned int sEndGuardMap[] = { 28 }; |
| 17389 | |
| 17390 | static int sPostFixPredicateTree[] = { 0 }; |
| 17391 | |
| 17392 | _SFD_CV_INIT_TRANS(123,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17393 | &(sPostFixPredicateTree[0])); |
| 17394 | } |
| 17395 | |
| 17396 | { |
| 17397 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17398 | |
| 17399 | static unsigned int sEndRelationalopMap[] = { 28 }; |
| 17400 | |
| 17401 | static int sRelationalopEps[] = { 0 }; |
| 17402 | |
| 17403 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 17404 | |
| 17405 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(123,1,&(sStartRelationalopMap[0]), |
| 17406 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17407 | &(sRelationalopType[0])); |
| 17408 | } |
| 17409 | |
| 17410 | _SFD_CV_INIT_TRANS(125,0,NULL,NULL,0,NULL); |
| 17411 | _SFD_CV_INIT_TRANS(124,0,NULL,NULL,0,NULL); |
| 17412 | |
| 17413 | { |
| 17414 | static unsigned int sStartGuardMap[] = { 2 }; |
| 17415 | |
| 17416 | static unsigned int sEndGuardMap[] = { 32 }; |
| 17417 | |
| 17418 | static int sPostFixPredicateTree[] = { 0 }; |
| 17419 | |
| 17420 | _SFD_CV_INIT_TRANS(80,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17421 | &(sPostFixPredicateTree[0])); |
| 17422 | } |
| 17423 | |
| 17424 | { |
| 17425 | static unsigned int sStartRelationalopMap[] = { 2 }; |
| 17426 | |
| 17427 | static unsigned int sEndRelationalopMap[] = { 32 }; |
| 17428 | |
| 17429 | static int sRelationalopEps[] = { 0 }; |
| 17430 | |
| 17431 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 17432 | |
| 17433 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(80,1,&(sStartRelationalopMap[0]), |
| 17434 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17435 | &(sRelationalopType[0])); |
| 17436 | } |
| 17437 | |
| 17438 | _SFD_CV_INIT_TRANS(82,0,NULL,NULL,0,NULL); |
| 17439 | _SFD_CV_INIT_TRANS(81,0,NULL,NULL,0,NULL); |
| 17440 | |
| 17441 | { |
| 17442 | static unsigned int sStartSaturateMap[] = { 130 }; |
| 17443 | |
| 17444 | static unsigned int sEndSaturateMap[] = { 131 }; |
| 17445 | |
| 17446 | _SFD_CV_INIT_TRANSITION_SATURATION(81,1,&(sStartSaturateMap[0]), |
| 17447 | &(sEndSaturateMap[0])); |
| 17448 | } |
| 17449 | |
| 17450 | { |
| 17451 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17452 | |
| 17453 | static unsigned int sEndGuardMap[] = { 33 }; |
| 17454 | |
| 17455 | static int sPostFixPredicateTree[] = { 0 }; |
| 17456 | |
| 17457 | _SFD_CV_INIT_TRANS(83,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17458 | &(sPostFixPredicateTree[0])); |
| 17459 | } |
| 17460 | |
| 17461 | { |
| 17462 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17463 | |
| 17464 | static unsigned int sEndRelationalopMap[] = { 33 }; |
| 17465 | |
| 17466 | static int sRelationalopEps[] = { 0 }; |
| 17467 | |
| 17468 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 17469 | |
| 17470 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(83,1,&(sStartRelationalopMap[0]), |
| 17471 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17472 | &(sRelationalopType[0])); |
| 17473 | } |
| 17474 | |
| 17475 | _SFD_CV_INIT_TRANS(85,0,NULL,NULL,0,NULL); |
| 17476 | _SFD_CV_INIT_TRANS(84,0,NULL,NULL,0,NULL); |
| 17477 | |
| 17478 | { |
| 17479 | static unsigned int sStartSaturateMap[] = { 136 }; |
| 17480 | |
| 17481 | static unsigned int sEndSaturateMap[] = { 137 }; |
| 17482 | |
| 17483 | _SFD_CV_INIT_TRANSITION_SATURATION(84,1,&(sStartSaturateMap[0]), |
| 17484 | &(sEndSaturateMap[0])); |
| 17485 | } |
| 17486 | |
| 17487 | { |
| 17488 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17489 | |
| 17490 | static unsigned int sEndGuardMap[] = { 39 }; |
| 17491 | |
| 17492 | static int sPostFixPredicateTree[] = { 0 }; |
| 17493 | |
| 17494 | _SFD_CV_INIT_TRANS(86,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17495 | &(sPostFixPredicateTree[0])); |
| 17496 | } |
| 17497 | |
| 17498 | { |
| 17499 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17500 | |
| 17501 | static unsigned int sEndRelationalopMap[] = { 39 }; |
| 17502 | |
| 17503 | static int sRelationalopEps[] = { 0 }; |
| 17504 | |
| 17505 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 17506 | |
| 17507 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(86,1,&(sStartRelationalopMap[0]), |
| 17508 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17509 | &(sRelationalopType[0])); |
| 17510 | } |
| 17511 | |
| 17512 | _SFD_CV_INIT_TRANS(88,0,NULL,NULL,0,NULL); |
| 17513 | _SFD_CV_INIT_TRANS(87,0,NULL,NULL,0,NULL); |
| 17514 | |
| 17515 | { |
| 17516 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17517 | |
| 17518 | static unsigned int sEndGuardMap[] = { 41 }; |
| 17519 | |
| 17520 | static int sPostFixPredicateTree[] = { 0 }; |
| 17521 | |
| 17522 | _SFD_CV_INIT_TRANS(89,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17523 | &(sPostFixPredicateTree[0])); |
| 17524 | } |
| 17525 | |
| 17526 | { |
| 17527 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17528 | |
| 17529 | static unsigned int sEndRelationalopMap[] = { 41 }; |
| 17530 | |
| 17531 | static int sRelationalopEps[] = { 0 }; |
| 17532 | |
| 17533 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 17534 | |
| 17535 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(89,1,&(sStartRelationalopMap[0]), |
| 17536 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17537 | &(sRelationalopType[0])); |
| 17538 | } |
| 17539 | |
| 17540 | _SFD_CV_INIT_TRANS(91,0,NULL,NULL,0,NULL); |
| 17541 | _SFD_CV_INIT_TRANS(90,0,NULL,NULL,0,NULL); |
| 17542 | _SFD_CV_INIT_TRANS(142,0,NULL,NULL,0,NULL); |
| 17543 | |
| 17544 | { |
| 17545 | static unsigned int sStartGuardMap[] = { 1, 28 }; |
| 17546 | |
| 17547 | static unsigned int sEndGuardMap[] = { 24, 48 }; |
| 17548 | |
| 17549 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17550 | |
| 17551 | _SFD_CV_INIT_TRANS(100,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17552 | &(sPostFixPredicateTree[0])); |
| 17553 | } |
| 17554 | |
| 17555 | { |
| 17556 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17557 | |
| 17558 | static unsigned int sEndRelationalopMap[] = { 24 }; |
| 17559 | |
| 17560 | static int sRelationalopEps[] = { 0 }; |
| 17561 | |
| 17562 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 17563 | |
| 17564 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(100,1,&(sStartRelationalopMap[0]), |
| 17565 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17566 | &(sRelationalopType[0])); |
| 17567 | } |
| 17568 | |
| 17569 | { |
| 17570 | static unsigned int sStartGuardMap[] = { 1, 48 }; |
| 17571 | |
| 17572 | static unsigned int sEndGuardMap[] = { 44, 61 }; |
| 17573 | |
| 17574 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17575 | |
| 17576 | _SFD_CV_INIT_TRANS(111,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17577 | &(sPostFixPredicateTree[0])); |
| 17578 | } |
| 17579 | |
| 17580 | { |
| 17581 | static unsigned int sStartRelationalopMap[] = { 1, 48 }; |
| 17582 | |
| 17583 | static unsigned int sEndRelationalopMap[] = { 44, 61 }; |
| 17584 | |
| 17585 | static int sRelationalopEps[] = { 0, 0 }; |
| 17586 | |
| 17587 | static int sRelationalopType[] = { 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, |
| 17588 | 5, 1, 5, 1, 5, 1 }; |
| 17589 | |
| 17590 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(111,2,&(sStartRelationalopMap[0]), |
| 17591 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17592 | &(sRelationalopType[0])); |
| 17593 | } |
| 17594 | |
| 17595 | _SFD_CV_INIT_TRANS(105,0,NULL,NULL,0,NULL); |
| 17596 | _SFD_CV_INIT_TRANS(107,0,NULL,NULL,0,NULL); |
| 17597 | |
| 17598 | { |
| 17599 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17600 | |
| 17601 | static unsigned int sEndGuardMap[] = { 16 }; |
| 17602 | |
| 17603 | static int sPostFixPredicateTree[] = { 0 }; |
| 17604 | |
| 17605 | _SFD_CV_INIT_TRANS(103,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17606 | &(sPostFixPredicateTree[0])); |
| 17607 | } |
| 17608 | |
| 17609 | { |
| 17610 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17611 | |
| 17612 | static unsigned int sEndRelationalopMap[] = { 16 }; |
| 17613 | |
| 17614 | static int sRelationalopEps[] = { 0 }; |
| 17615 | |
| 17616 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17617 | |
| 17618 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(103,1,&(sStartRelationalopMap[0]), |
| 17619 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17620 | &(sRelationalopType[0])); |
| 17621 | } |
| 17622 | |
| 17623 | { |
| 17624 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17625 | |
| 17626 | static unsigned int sEndGuardMap[] = { 16 }; |
| 17627 | |
| 17628 | static int sPostFixPredicateTree[] = { 0 }; |
| 17629 | |
| 17630 | _SFD_CV_INIT_TRANS(106,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17631 | &(sPostFixPredicateTree[0])); |
| 17632 | } |
| 17633 | |
| 17634 | { |
| 17635 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17636 | |
| 17637 | static unsigned int sEndRelationalopMap[] = { 16 }; |
| 17638 | |
| 17639 | static int sRelationalopEps[] = { 0 }; |
| 17640 | |
| 17641 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17642 | |
| 17643 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(106,1,&(sStartRelationalopMap[0]), |
| 17644 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17645 | &(sRelationalopType[0])); |
| 17646 | } |
| 17647 | |
| 17648 | { |
| 17649 | static unsigned int sStartGuardMap[] = { 1, 28, 51 }; |
| 17650 | |
| 17651 | static unsigned int sEndGuardMap[] = { 24, 47, 101 }; |
| 17652 | |
| 17653 | static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; |
| 17654 | |
| 17655 | _SFD_CV_INIT_TRANS(101,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, |
| 17656 | &(sPostFixPredicateTree[0])); |
| 17657 | } |
| 17658 | |
| 17659 | { |
| 17660 | static unsigned int sStartRelationalopMap[] = { 1, 51 }; |
| 17661 | |
| 17662 | static unsigned int sEndRelationalopMap[] = { 24, 101 }; |
| 17663 | |
| 17664 | static int sRelationalopEps[] = { 0, 0 }; |
| 17665 | |
| 17666 | static int sRelationalopType[] = { 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, |
| 17667 | 1, 5, 1, 5, 1, 5 }; |
| 17668 | |
| 17669 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(101,2,&(sStartRelationalopMap[0]), |
| 17670 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17671 | &(sRelationalopType[0])); |
| 17672 | } |
| 17673 | |
| 17674 | { |
| 17675 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17676 | |
| 17677 | static unsigned int sEndGuardMap[] = { 16 }; |
| 17678 | |
| 17679 | static int sPostFixPredicateTree[] = { 0 }; |
| 17680 | |
| 17681 | _SFD_CV_INIT_TRANS(102,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17682 | &(sPostFixPredicateTree[0])); |
| 17683 | } |
| 17684 | |
| 17685 | { |
| 17686 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17687 | |
| 17688 | static unsigned int sEndRelationalopMap[] = { 16 }; |
| 17689 | |
| 17690 | static int sRelationalopEps[] = { 0 }; |
| 17691 | |
| 17692 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17693 | |
| 17694 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(102,1,&(sStartRelationalopMap[0]), |
| 17695 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17696 | &(sRelationalopType[0])); |
| 17697 | } |
| 17698 | |
| 17699 | { |
| 17700 | static unsigned int sStartGuardMap[] = { 1, 23 }; |
| 17701 | |
| 17702 | static unsigned int sEndGuardMap[] = { 19, 72 }; |
| 17703 | |
| 17704 | static int sPostFixPredicateTree[] = { 0, 1, -2 }; |
| 17705 | |
| 17706 | _SFD_CV_INIT_TRANS(110,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17707 | &(sPostFixPredicateTree[0])); |
| 17708 | } |
| 17709 | |
| 17710 | { |
| 17711 | static unsigned int sStartRelationalopMap[] = { 1, 23 }; |
| 17712 | |
| 17713 | static unsigned int sEndRelationalopMap[] = { 19, 72 }; |
| 17714 | |
| 17715 | static int sRelationalopEps[] = { 0, 0 }; |
| 17716 | |
| 17717 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 17718 | 3, 3, 3, 3, 3, 3 }; |
| 17719 | |
| 17720 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(110,2,&(sStartRelationalopMap[0]), |
| 17721 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17722 | &(sRelationalopType[0])); |
| 17723 | } |
| 17724 | |
| 17725 | _SFD_CV_INIT_TRANS(112,0,NULL,NULL,0,NULL); |
| 17726 | |
| 17727 | { |
| 17728 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17729 | |
| 17730 | static unsigned int sEndGuardMap[] = { 15 }; |
| 17731 | |
| 17732 | static int sPostFixPredicateTree[] = { 0 }; |
| 17733 | |
| 17734 | _SFD_CV_INIT_TRANS(104,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17735 | &(sPostFixPredicateTree[0])); |
| 17736 | } |
| 17737 | |
| 17738 | { |
| 17739 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17740 | |
| 17741 | static unsigned int sEndRelationalopMap[] = { 15 }; |
| 17742 | |
| 17743 | static int sRelationalopEps[] = { 0 }; |
| 17744 | |
| 17745 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17746 | |
| 17747 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(104,1,&(sStartRelationalopMap[0]), |
| 17748 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17749 | &(sRelationalopType[0])); |
| 17750 | } |
| 17751 | |
| 17752 | _SFD_CV_INIT_TRANS(113,0,NULL,NULL,0,NULL); |
| 17753 | |
| 17754 | { |
| 17755 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17756 | |
| 17757 | static unsigned int sEndGuardMap[] = { 22 }; |
| 17758 | |
| 17759 | static int sPostFixPredicateTree[] = { 0 }; |
| 17760 | |
| 17761 | _SFD_CV_INIT_TRANS(133,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17762 | &(sPostFixPredicateTree[0])); |
| 17763 | } |
| 17764 | |
| 17765 | { |
| 17766 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17767 | |
| 17768 | static unsigned int sEndRelationalopMap[] = { 22 }; |
| 17769 | |
| 17770 | static int sRelationalopEps[] = { 0 }; |
| 17771 | |
| 17772 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 17773 | |
| 17774 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(133,1,&(sStartRelationalopMap[0]), |
| 17775 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17776 | &(sRelationalopType[0])); |
| 17777 | } |
| 17778 | |
| 17779 | _SFD_CV_INIT_TRANS(135,0,NULL,NULL,0,NULL); |
| 17780 | _SFD_CV_INIT_TRANS(134,0,NULL,NULL,0,NULL); |
| 17781 | |
| 17782 | { |
| 17783 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17784 | |
| 17785 | static unsigned int sEndGuardMap[] = { 74 }; |
| 17786 | |
| 17787 | static int sPostFixPredicateTree[] = { 0 }; |
| 17788 | |
| 17789 | _SFD_CV_INIT_TRANS(114,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17790 | &(sPostFixPredicateTree[0])); |
| 17791 | } |
| 17792 | |
| 17793 | { |
| 17794 | static unsigned int sStartSaturateMap[] = { 12 }; |
| 17795 | |
| 17796 | static unsigned int sEndSaturateMap[] = { 26 }; |
| 17797 | |
| 17798 | _SFD_CV_INIT_TRANSITION_SATURATION(114,1,&(sStartSaturateMap[0]), |
| 17799 | &(sEndSaturateMap[0])); |
| 17800 | } |
| 17801 | |
| 17802 | { |
| 17803 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17804 | |
| 17805 | static unsigned int sEndRelationalopMap[] = { 74 }; |
| 17806 | |
| 17807 | static int sRelationalopEps[] = { 0 }; |
| 17808 | |
| 17809 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 17810 | |
| 17811 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(114,1,&(sStartRelationalopMap[0]), |
| 17812 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17813 | &(sRelationalopType[0])); |
| 17814 | } |
| 17815 | |
| 17816 | _SFD_CV_INIT_TRANS(115,0,NULL,NULL,0,NULL); |
| 17817 | _SFD_CV_INIT_TRANS(116,0,NULL,NULL,0,NULL); |
| 17818 | |
| 17819 | { |
| 17820 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17821 | |
| 17822 | static unsigned int sEndGuardMap[] = { 80 }; |
| 17823 | |
| 17824 | static int sPostFixPredicateTree[] = { 0 }; |
| 17825 | |
| 17826 | _SFD_CV_INIT_TRANS(117,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17827 | &(sPostFixPredicateTree[0])); |
| 17828 | } |
| 17829 | |
| 17830 | { |
| 17831 | static unsigned int sStartSaturateMap[] = { 16 }; |
| 17832 | |
| 17833 | static unsigned int sEndSaturateMap[] = { 30 }; |
| 17834 | |
| 17835 | _SFD_CV_INIT_TRANSITION_SATURATION(117,1,&(sStartSaturateMap[0]), |
| 17836 | &(sEndSaturateMap[0])); |
| 17837 | } |
| 17838 | |
| 17839 | { |
| 17840 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17841 | |
| 17842 | static unsigned int sEndRelationalopMap[] = { 80 }; |
| 17843 | |
| 17844 | static int sRelationalopEps[] = { 0 }; |
| 17845 | |
| 17846 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 17847 | |
| 17848 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(117,1,&(sStartRelationalopMap[0]), |
| 17849 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17850 | &(sRelationalopType[0])); |
| 17851 | } |
| 17852 | |
| 17853 | _SFD_CV_INIT_TRANS(118,0,NULL,NULL,0,NULL); |
| 17854 | _SFD_CV_INIT_TRANS(119,0,NULL,NULL,0,NULL); |
| 17855 | |
| 17856 | { |
| 17857 | static unsigned int sStartSaturateMap[] = { 53 }; |
| 17858 | |
| 17859 | static unsigned int sEndSaturateMap[] = { 54 }; |
| 17860 | |
| 17861 | _SFD_CV_INIT_TRANSITION_SATURATION(119,1,&(sStartSaturateMap[0]), |
| 17862 | &(sEndSaturateMap[0])); |
| 17863 | } |
| 17864 | |
| 17865 | _SFD_CV_INIT_TRANS(108,0,NULL,NULL,0,NULL); |
| 17866 | _SFD_CV_INIT_TRANS(109,0,NULL,NULL,0,NULL); |
| 17867 | _SFD_CV_INIT_TRANS(151,0,NULL,NULL,0,NULL); |
| 17868 | |
| 17869 | { |
| 17870 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 17871 | |
| 17872 | static unsigned int sEndGuardMap[] = { 28, 60 }; |
| 17873 | |
| 17874 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17875 | |
| 17876 | _SFD_CV_INIT_TRANS(153,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17877 | &(sPostFixPredicateTree[0])); |
| 17878 | } |
| 17879 | |
| 17880 | { |
| 17881 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17882 | |
| 17883 | static unsigned int sEndRelationalopMap[] = { 28 }; |
| 17884 | |
| 17885 | static int sRelationalopEps[] = { 0 }; |
| 17886 | |
| 17887 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 17888 | |
| 17889 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(153,1,&(sStartRelationalopMap[0]), |
| 17890 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17891 | &(sRelationalopType[0])); |
| 17892 | } |
| 17893 | |
| 17894 | { |
| 17895 | static unsigned int sStartGuardMap[] = { 1, 56 }; |
| 17896 | |
| 17897 | static unsigned int sEndGuardMap[] = { 52, 69 }; |
| 17898 | |
| 17899 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 17900 | |
| 17901 | _SFD_CV_INIT_TRANS(154,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 17902 | &(sPostFixPredicateTree[0])); |
| 17903 | } |
| 17904 | |
| 17905 | { |
| 17906 | static unsigned int sStartRelationalopMap[] = { 1, 56 }; |
| 17907 | |
| 17908 | static unsigned int sEndRelationalopMap[] = { 52, 69 }; |
| 17909 | |
| 17910 | static int sRelationalopEps[] = { 0, 0 }; |
| 17911 | |
| 17912 | static int sRelationalopType[] = { 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, |
| 17913 | 5, 1, 5, 1, 5, 1 }; |
| 17914 | |
| 17915 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(154,2,&(sStartRelationalopMap[0]), |
| 17916 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17917 | &(sRelationalopType[0])); |
| 17918 | } |
| 17919 | |
| 17920 | _SFD_CV_INIT_TRANS(156,0,NULL,NULL,0,NULL); |
| 17921 | _SFD_CV_INIT_TRANS(157,0,NULL,NULL,0,NULL); |
| 17922 | |
| 17923 | { |
| 17924 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17925 | |
| 17926 | static unsigned int sEndGuardMap[] = { 18 }; |
| 17927 | |
| 17928 | static int sPostFixPredicateTree[] = { 0 }; |
| 17929 | |
| 17930 | _SFD_CV_INIT_TRANS(158,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17931 | &(sPostFixPredicateTree[0])); |
| 17932 | } |
| 17933 | |
| 17934 | { |
| 17935 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17936 | |
| 17937 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 17938 | |
| 17939 | static int sRelationalopEps[] = { 0 }; |
| 17940 | |
| 17941 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17942 | |
| 17943 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(158,1,&(sStartRelationalopMap[0]), |
| 17944 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17945 | &(sRelationalopType[0])); |
| 17946 | } |
| 17947 | |
| 17948 | { |
| 17949 | static unsigned int sStartGuardMap[] = { 1 }; |
| 17950 | |
| 17951 | static unsigned int sEndGuardMap[] = { 18 }; |
| 17952 | |
| 17953 | static int sPostFixPredicateTree[] = { 0 }; |
| 17954 | |
| 17955 | _SFD_CV_INIT_TRANS(159,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 17956 | &(sPostFixPredicateTree[0])); |
| 17957 | } |
| 17958 | |
| 17959 | { |
| 17960 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 17961 | |
| 17962 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 17963 | |
| 17964 | static int sRelationalopEps[] = { 0 }; |
| 17965 | |
| 17966 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 17967 | |
| 17968 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(159,1,&(sStartRelationalopMap[0]), |
| 17969 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17970 | &(sRelationalopType[0])); |
| 17971 | } |
| 17972 | |
| 17973 | { |
| 17974 | static unsigned int sStartGuardMap[] = { 1, 32, 59 }; |
| 17975 | |
| 17976 | static unsigned int sEndGuardMap[] = { 28, 55, 106 }; |
| 17977 | |
| 17978 | static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; |
| 17979 | |
| 17980 | _SFD_CV_INIT_TRANS(160,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, |
| 17981 | &(sPostFixPredicateTree[0])); |
| 17982 | } |
| 17983 | |
| 17984 | { |
| 17985 | static unsigned int sStartRelationalopMap[] = { 1, 59 }; |
| 17986 | |
| 17987 | static unsigned int sEndRelationalopMap[] = { 28, 106 }; |
| 17988 | |
| 17989 | static int sRelationalopEps[] = { 0, 0 }; |
| 17990 | |
| 17991 | static int sRelationalopType[] = { 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, |
| 17992 | 1, 5, 1, 5, 1, 5 }; |
| 17993 | |
| 17994 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(160,2,&(sStartRelationalopMap[0]), |
| 17995 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 17996 | &(sRelationalopType[0])); |
| 17997 | } |
| 17998 | |
| 17999 | { |
| 18000 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18001 | |
| 18002 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18003 | |
| 18004 | static int sPostFixPredicateTree[] = { 0 }; |
| 18005 | |
| 18006 | _SFD_CV_INIT_TRANS(161,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18007 | &(sPostFixPredicateTree[0])); |
| 18008 | } |
| 18009 | |
| 18010 | { |
| 18011 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18012 | |
| 18013 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18014 | |
| 18015 | static int sRelationalopEps[] = { 0 }; |
| 18016 | |
| 18017 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18018 | |
| 18019 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(161,1,&(sStartRelationalopMap[0]), |
| 18020 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18021 | &(sRelationalopType[0])); |
| 18022 | } |
| 18023 | |
| 18024 | { |
| 18025 | static unsigned int sStartGuardMap[] = { 1, 25 }; |
| 18026 | |
| 18027 | static unsigned int sEndGuardMap[] = { 21, 71 }; |
| 18028 | |
| 18029 | static int sPostFixPredicateTree[] = { 0, 1, -2 }; |
| 18030 | |
| 18031 | _SFD_CV_INIT_TRANS(162,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18032 | &(sPostFixPredicateTree[0])); |
| 18033 | } |
| 18034 | |
| 18035 | { |
| 18036 | static unsigned int sStartRelationalopMap[] = { 1, 25 }; |
| 18037 | |
| 18038 | static unsigned int sEndRelationalopMap[] = { 21, 71 }; |
| 18039 | |
| 18040 | static int sRelationalopEps[] = { 0, 0 }; |
| 18041 | |
| 18042 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 18043 | 3, 3, 3, 3, 3, 3 }; |
| 18044 | |
| 18045 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(162,2,&(sStartRelationalopMap[0]), |
| 18046 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18047 | &(sRelationalopType[0])); |
| 18048 | } |
| 18049 | |
| 18050 | _SFD_CV_INIT_TRANS(163,0,NULL,NULL,0,NULL); |
| 18051 | |
| 18052 | { |
| 18053 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18054 | |
| 18055 | static unsigned int sEndGuardMap[] = { 17 }; |
| 18056 | |
| 18057 | static int sPostFixPredicateTree[] = { 0 }; |
| 18058 | |
| 18059 | _SFD_CV_INIT_TRANS(164,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18060 | &(sPostFixPredicateTree[0])); |
| 18061 | } |
| 18062 | |
| 18063 | { |
| 18064 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18065 | |
| 18066 | static unsigned int sEndRelationalopMap[] = { 17 }; |
| 18067 | |
| 18068 | static int sRelationalopEps[] = { 0 }; |
| 18069 | |
| 18070 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18071 | |
| 18072 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(164,1,&(sStartRelationalopMap[0]), |
| 18073 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18074 | &(sRelationalopType[0])); |
| 18075 | } |
| 18076 | |
| 18077 | _SFD_CV_INIT_TRANS(165,0,NULL,NULL,0,NULL); |
| 18078 | |
| 18079 | { |
| 18080 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18081 | |
| 18082 | static unsigned int sEndGuardMap[] = { 22 }; |
| 18083 | |
| 18084 | static int sPostFixPredicateTree[] = { 0 }; |
| 18085 | |
| 18086 | _SFD_CV_INIT_TRANS(166,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18087 | &(sPostFixPredicateTree[0])); |
| 18088 | } |
| 18089 | |
| 18090 | { |
| 18091 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18092 | |
| 18093 | static unsigned int sEndRelationalopMap[] = { 22 }; |
| 18094 | |
| 18095 | static int sRelationalopEps[] = { 0 }; |
| 18096 | |
| 18097 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18098 | |
| 18099 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(166,1,&(sStartRelationalopMap[0]), |
| 18100 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18101 | &(sRelationalopType[0])); |
| 18102 | } |
| 18103 | |
| 18104 | _SFD_CV_INIT_TRANS(167,0,NULL,NULL,0,NULL); |
| 18105 | _SFD_CV_INIT_TRANS(168,0,NULL,NULL,0,NULL); |
| 18106 | |
| 18107 | { |
| 18108 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18109 | |
| 18110 | static unsigned int sEndGuardMap[] = { 71 }; |
| 18111 | |
| 18112 | static int sPostFixPredicateTree[] = { 0 }; |
| 18113 | |
| 18114 | _SFD_CV_INIT_TRANS(169,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18115 | &(sPostFixPredicateTree[0])); |
| 18116 | } |
| 18117 | |
| 18118 | { |
| 18119 | static unsigned int sStartSaturateMap[] = { 12 }; |
| 18120 | |
| 18121 | static unsigned int sEndSaturateMap[] = { 28 }; |
| 18122 | |
| 18123 | _SFD_CV_INIT_TRANSITION_SATURATION(169,1,&(sStartSaturateMap[0]), |
| 18124 | &(sEndSaturateMap[0])); |
| 18125 | } |
| 18126 | |
| 18127 | { |
| 18128 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18129 | |
| 18130 | static unsigned int sEndRelationalopMap[] = { 71 }; |
| 18131 | |
| 18132 | static int sRelationalopEps[] = { 0 }; |
| 18133 | |
| 18134 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 18135 | |
| 18136 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(169,1,&(sStartRelationalopMap[0]), |
| 18137 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18138 | &(sRelationalopType[0])); |
| 18139 | } |
| 18140 | |
| 18141 | _SFD_CV_INIT_TRANS(170,0,NULL,NULL,0,NULL); |
| 18142 | _SFD_CV_INIT_TRANS(171,0,NULL,NULL,0,NULL); |
| 18143 | |
| 18144 | { |
| 18145 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18146 | |
| 18147 | static unsigned int sEndGuardMap[] = { 76 }; |
| 18148 | |
| 18149 | static int sPostFixPredicateTree[] = { 0 }; |
| 18150 | |
| 18151 | _SFD_CV_INIT_TRANS(172,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18152 | &(sPostFixPredicateTree[0])); |
| 18153 | } |
| 18154 | |
| 18155 | { |
| 18156 | static unsigned int sStartSaturateMap[] = { 16 }; |
| 18157 | |
| 18158 | static unsigned int sEndSaturateMap[] = { 32 }; |
| 18159 | |
| 18160 | _SFD_CV_INIT_TRANSITION_SATURATION(172,1,&(sStartSaturateMap[0]), |
| 18161 | &(sEndSaturateMap[0])); |
| 18162 | } |
| 18163 | |
| 18164 | { |
| 18165 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18166 | |
| 18167 | static unsigned int sEndRelationalopMap[] = { 76 }; |
| 18168 | |
| 18169 | static int sRelationalopEps[] = { 0 }; |
| 18170 | |
| 18171 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 18172 | |
| 18173 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(172,1,&(sStartRelationalopMap[0]), |
| 18174 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18175 | &(sRelationalopType[0])); |
| 18176 | } |
| 18177 | |
| 18178 | _SFD_CV_INIT_TRANS(173,0,NULL,NULL,0,NULL); |
| 18179 | _SFD_CV_INIT_TRANS(174,0,NULL,NULL,0,NULL); |
| 18180 | |
| 18181 | { |
| 18182 | static unsigned int sStartSaturateMap[] = { 53 }; |
| 18183 | |
| 18184 | static unsigned int sEndSaturateMap[] = { 54 }; |
| 18185 | |
| 18186 | _SFD_CV_INIT_TRANSITION_SATURATION(174,1,&(sStartSaturateMap[0]), |
| 18187 | &(sEndSaturateMap[0])); |
| 18188 | } |
| 18189 | |
| 18190 | _SFD_CV_INIT_TRANS(175,0,NULL,NULL,0,NULL); |
| 18191 | _SFD_CV_INIT_TRANS(176,0,NULL,NULL,0,NULL); |
| 18192 | |
| 18193 | { |
| 18194 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 18195 | |
| 18196 | static unsigned int sEndGuardMap[] = { 28, 58 }; |
| 18197 | |
| 18198 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18199 | |
| 18200 | _SFD_CV_INIT_TRANS(183,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18201 | &(sPostFixPredicateTree[0])); |
| 18202 | } |
| 18203 | |
| 18204 | { |
| 18205 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18206 | |
| 18207 | static unsigned int sEndRelationalopMap[] = { 28 }; |
| 18208 | |
| 18209 | static int sRelationalopEps[] = { 0 }; |
| 18210 | |
| 18211 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 18212 | |
| 18213 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(183,1,&(sStartRelationalopMap[0]), |
| 18214 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18215 | &(sRelationalopType[0])); |
| 18216 | } |
| 18217 | |
| 18218 | _SFD_CV_INIT_TRANS(189,0,NULL,NULL,0,NULL); |
| 18219 | _SFD_CV_INIT_TRANS(190,0,NULL,NULL,0,NULL); |
| 18220 | _SFD_CV_INIT_TRANS(191,0,NULL,NULL,0,NULL); |
| 18221 | _SFD_CV_INIT_TRANS(192,0,NULL,NULL,0,NULL); |
| 18222 | _SFD_CV_INIT_TRANS(193,0,NULL,NULL,0,NULL); |
| 18223 | _SFD_CV_INIT_TRANS(194,0,NULL,NULL,0,NULL); |
| 18224 | _SFD_CV_INIT_TRANS(195,0,NULL,NULL,0,NULL); |
| 18225 | _SFD_CV_INIT_TRANS(184,0,NULL,NULL,0,NULL); |
| 18226 | _SFD_CV_INIT_TRANS(202,0,NULL,NULL,0,NULL); |
| 18227 | _SFD_CV_INIT_TRANS(203,0,NULL,NULL,0,NULL); |
| 18228 | _SFD_CV_INIT_TRANS(201,0,NULL,NULL,0,NULL); |
| 18229 | _SFD_CV_INIT_TRANS(200,0,NULL,NULL,0,NULL); |
| 18230 | _SFD_CV_INIT_TRANS(199,0,NULL,NULL,0,NULL); |
| 18231 | _SFD_CV_INIT_TRANS(198,0,NULL,NULL,0,NULL); |
| 18232 | _SFD_CV_INIT_TRANS(197,0,NULL,NULL,0,NULL); |
| 18233 | _SFD_CV_INIT_TRANS(196,0,NULL,NULL,0,NULL); |
| 18234 | _SFD_CV_INIT_TRANS(204,0,NULL,NULL,0,NULL); |
| 18235 | _SFD_CV_INIT_TRANS(209,0,NULL,NULL,0,NULL); |
| 18236 | |
| 18237 | { |
| 18238 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 18239 | |
| 18240 | static unsigned int sEndGuardMap[] = { 28, 60 }; |
| 18241 | |
| 18242 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18243 | |
| 18244 | _SFD_CV_INIT_TRANS(211,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18245 | &(sPostFixPredicateTree[0])); |
| 18246 | } |
| 18247 | |
| 18248 | { |
| 18249 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18250 | |
| 18251 | static unsigned int sEndRelationalopMap[] = { 28 }; |
| 18252 | |
| 18253 | static int sRelationalopEps[] = { 0 }; |
| 18254 | |
| 18255 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 18256 | |
| 18257 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(211,1,&(sStartRelationalopMap[0]), |
| 18258 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18259 | &(sRelationalopType[0])); |
| 18260 | } |
| 18261 | |
| 18262 | { |
| 18263 | static unsigned int sStartGuardMap[] = { 1, 18 }; |
| 18264 | |
| 18265 | static unsigned int sEndGuardMap[] = { 14, 31 }; |
| 18266 | |
| 18267 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18268 | |
| 18269 | _SFD_CV_INIT_TRANS(212,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18270 | &(sPostFixPredicateTree[0])); |
| 18271 | } |
| 18272 | |
| 18273 | { |
| 18274 | static unsigned int sStartRelationalopMap[] = { 1, 18 }; |
| 18275 | |
| 18276 | static unsigned int sEndRelationalopMap[] = { 14, 31 }; |
| 18277 | |
| 18278 | static int sRelationalopEps[] = { 0, 0 }; |
| 18279 | |
| 18280 | static int sRelationalopType[] = { 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, |
| 18281 | 5, 1, 5, 1 }; |
| 18282 | |
| 18283 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(212,2,&(sStartRelationalopMap[0]), |
| 18284 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18285 | &(sRelationalopType[0])); |
| 18286 | } |
| 18287 | |
| 18288 | _SFD_CV_INIT_TRANS(214,0,NULL,NULL,0,NULL); |
| 18289 | _SFD_CV_INIT_TRANS(215,0,NULL,NULL,0,NULL); |
| 18290 | |
| 18291 | { |
| 18292 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18293 | |
| 18294 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18295 | |
| 18296 | static int sPostFixPredicateTree[] = { 0 }; |
| 18297 | |
| 18298 | _SFD_CV_INIT_TRANS(216,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18299 | &(sPostFixPredicateTree[0])); |
| 18300 | } |
| 18301 | |
| 18302 | { |
| 18303 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18304 | |
| 18305 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18306 | |
| 18307 | static int sRelationalopEps[] = { 0 }; |
| 18308 | |
| 18309 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18310 | |
| 18311 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(216,1,&(sStartRelationalopMap[0]), |
| 18312 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18313 | &(sRelationalopType[0])); |
| 18314 | } |
| 18315 | |
| 18316 | { |
| 18317 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18318 | |
| 18319 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18320 | |
| 18321 | static int sPostFixPredicateTree[] = { 0 }; |
| 18322 | |
| 18323 | _SFD_CV_INIT_TRANS(217,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18324 | &(sPostFixPredicateTree[0])); |
| 18325 | } |
| 18326 | |
| 18327 | { |
| 18328 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18329 | |
| 18330 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18331 | |
| 18332 | static int sRelationalopEps[] = { 0 }; |
| 18333 | |
| 18334 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18335 | |
| 18336 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(217,1,&(sStartRelationalopMap[0]), |
| 18337 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18338 | &(sRelationalopType[0])); |
| 18339 | } |
| 18340 | |
| 18341 | { |
| 18342 | static unsigned int sStartGuardMap[] = { 1, 32, 59 }; |
| 18343 | |
| 18344 | static unsigned int sEndGuardMap[] = { 28, 55, 106 }; |
| 18345 | |
| 18346 | static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; |
| 18347 | |
| 18348 | _SFD_CV_INIT_TRANS(218,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, |
| 18349 | &(sPostFixPredicateTree[0])); |
| 18350 | } |
| 18351 | |
| 18352 | { |
| 18353 | static unsigned int sStartRelationalopMap[] = { 1, 59 }; |
| 18354 | |
| 18355 | static unsigned int sEndRelationalopMap[] = { 28, 106 }; |
| 18356 | |
| 18357 | static int sRelationalopEps[] = { 0, 0 }; |
| 18358 | |
| 18359 | static int sRelationalopType[] = { 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, |
| 18360 | 1, 5, 1, 5 }; |
| 18361 | |
| 18362 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(218,2,&(sStartRelationalopMap[0]), |
| 18363 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18364 | &(sRelationalopType[0])); |
| 18365 | } |
| 18366 | |
| 18367 | { |
| 18368 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18369 | |
| 18370 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18371 | |
| 18372 | static int sPostFixPredicateTree[] = { 0 }; |
| 18373 | |
| 18374 | _SFD_CV_INIT_TRANS(232,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18375 | &(sPostFixPredicateTree[0])); |
| 18376 | } |
| 18377 | |
| 18378 | { |
| 18379 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18380 | |
| 18381 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18382 | |
| 18383 | static int sRelationalopEps[] = { 0 }; |
| 18384 | |
| 18385 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 18386 | |
| 18387 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(232,1,&(sStartRelationalopMap[0]), |
| 18388 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18389 | &(sRelationalopType[0])); |
| 18390 | } |
| 18391 | |
| 18392 | { |
| 18393 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18394 | |
| 18395 | static unsigned int sEndGuardMap[] = { 19 }; |
| 18396 | |
| 18397 | static int sPostFixPredicateTree[] = { 0 }; |
| 18398 | |
| 18399 | _SFD_CV_INIT_TRANS(219,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18400 | &(sPostFixPredicateTree[0])); |
| 18401 | } |
| 18402 | |
| 18403 | { |
| 18404 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18405 | |
| 18406 | static unsigned int sEndRelationalopMap[] = { 19 }; |
| 18407 | |
| 18408 | static int sRelationalopEps[] = { 0 }; |
| 18409 | |
| 18410 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18411 | |
| 18412 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(219,1,&(sStartRelationalopMap[0]), |
| 18413 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18414 | &(sRelationalopType[0])); |
| 18415 | } |
| 18416 | |
| 18417 | _SFD_CV_INIT_TRANS(220,0,NULL,NULL,0,NULL); |
| 18418 | |
| 18419 | { |
| 18420 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18421 | |
| 18422 | static unsigned int sEndGuardMap[] = { 22 }; |
| 18423 | |
| 18424 | static int sPostFixPredicateTree[] = { 0 }; |
| 18425 | |
| 18426 | _SFD_CV_INIT_TRANS(221,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18427 | &(sPostFixPredicateTree[0])); |
| 18428 | } |
| 18429 | |
| 18430 | { |
| 18431 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18432 | |
| 18433 | static unsigned int sEndRelationalopMap[] = { 22 }; |
| 18434 | |
| 18435 | static int sRelationalopEps[] = { 0 }; |
| 18436 | |
| 18437 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18438 | |
| 18439 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(221,1,&(sStartRelationalopMap[0]), |
| 18440 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18441 | &(sRelationalopType[0])); |
| 18442 | } |
| 18443 | |
| 18444 | _SFD_CV_INIT_TRANS(222,0,NULL,NULL,0,NULL); |
| 18445 | _SFD_CV_INIT_TRANS(223,0,NULL,NULL,0,NULL); |
| 18446 | |
| 18447 | { |
| 18448 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18449 | |
| 18450 | static unsigned int sEndGuardMap[] = { 71 }; |
| 18451 | |
| 18452 | static int sPostFixPredicateTree[] = { 0 }; |
| 18453 | |
| 18454 | _SFD_CV_INIT_TRANS(224,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18455 | &(sPostFixPredicateTree[0])); |
| 18456 | } |
| 18457 | |
| 18458 | { |
| 18459 | static unsigned int sStartSaturateMap[] = { 12 }; |
| 18460 | |
| 18461 | static unsigned int sEndSaturateMap[] = { 28 }; |
| 18462 | |
| 18463 | _SFD_CV_INIT_TRANSITION_SATURATION(224,1,&(sStartSaturateMap[0]), |
| 18464 | &(sEndSaturateMap[0])); |
| 18465 | } |
| 18466 | |
| 18467 | { |
| 18468 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18469 | |
| 18470 | static unsigned int sEndRelationalopMap[] = { 71 }; |
| 18471 | |
| 18472 | static int sRelationalopEps[] = { 0 }; |
| 18473 | |
| 18474 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 18475 | |
| 18476 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(224,1,&(sStartRelationalopMap[0]), |
| 18477 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18478 | &(sRelationalopType[0])); |
| 18479 | } |
| 18480 | |
| 18481 | _SFD_CV_INIT_TRANS(225,0,NULL,NULL,0,NULL); |
| 18482 | _SFD_CV_INIT_TRANS(226,0,NULL,NULL,0,NULL); |
| 18483 | |
| 18484 | { |
| 18485 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18486 | |
| 18487 | static unsigned int sEndGuardMap[] = { 77 }; |
| 18488 | |
| 18489 | static int sPostFixPredicateTree[] = { 0 }; |
| 18490 | |
| 18491 | _SFD_CV_INIT_TRANS(227,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18492 | &(sPostFixPredicateTree[0])); |
| 18493 | } |
| 18494 | |
| 18495 | { |
| 18496 | static unsigned int sStartSaturateMap[] = { 16 }; |
| 18497 | |
| 18498 | static unsigned int sEndSaturateMap[] = { 32 }; |
| 18499 | |
| 18500 | _SFD_CV_INIT_TRANSITION_SATURATION(227,1,&(sStartSaturateMap[0]), |
| 18501 | &(sEndSaturateMap[0])); |
| 18502 | } |
| 18503 | |
| 18504 | { |
| 18505 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18506 | |
| 18507 | static unsigned int sEndRelationalopMap[] = { 77 }; |
| 18508 | |
| 18509 | static int sRelationalopEps[] = { 0 }; |
| 18510 | |
| 18511 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 18512 | |
| 18513 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(227,1,&(sStartRelationalopMap[0]), |
| 18514 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18515 | &(sRelationalopType[0])); |
| 18516 | } |
| 18517 | |
| 18518 | _SFD_CV_INIT_TRANS(228,0,NULL,NULL,0,NULL); |
| 18519 | _SFD_CV_INIT_TRANS(229,0,NULL,NULL,0,NULL); |
| 18520 | |
| 18521 | { |
| 18522 | static unsigned int sStartSaturateMap[] = { 53 }; |
| 18523 | |
| 18524 | static unsigned int sEndSaturateMap[] = { 54 }; |
| 18525 | |
| 18526 | _SFD_CV_INIT_TRANSITION_SATURATION(229,1,&(sStartSaturateMap[0]), |
| 18527 | &(sEndSaturateMap[0])); |
| 18528 | } |
| 18529 | |
| 18530 | _SFD_CV_INIT_TRANS(230,0,NULL,NULL,0,NULL); |
| 18531 | _SFD_CV_INIT_TRANS(231,0,NULL,NULL,0,NULL); |
| 18532 | |
| 18533 | { |
| 18534 | static unsigned int sStartGuardMap[] = { 0 }; |
| 18535 | |
| 18536 | static unsigned int sEndGuardMap[] = { 13 }; |
| 18537 | |
| 18538 | static int sPostFixPredicateTree[] = { 0 }; |
| 18539 | |
| 18540 | _SFD_CV_INIT_TRANS(92,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18541 | &(sPostFixPredicateTree[0])); |
| 18542 | } |
| 18543 | |
| 18544 | _SFD_CV_INIT_TRANS(13,0,NULL,NULL,0,NULL); |
| 18545 | |
| 18546 | { |
| 18547 | static unsigned int sStartGuardMap[] = { 0 }; |
| 18548 | |
| 18549 | static unsigned int sEndGuardMap[] = { 11 }; |
| 18550 | |
| 18551 | static int sPostFixPredicateTree[] = { 0 }; |
| 18552 | |
| 18553 | _SFD_CV_INIT_TRANS(14,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18554 | &(sPostFixPredicateTree[0])); |
| 18555 | } |
| 18556 | |
| 18557 | { |
| 18558 | static unsigned int sStartGuardMap[] = { 1, 27 }; |
| 18559 | |
| 18560 | static unsigned int sEndGuardMap[] = { 23, 47 }; |
| 18561 | |
| 18562 | static int sPostFixPredicateTree[] = { 0, 1, -2 }; |
| 18563 | |
| 18564 | _SFD_CV_INIT_TRANS(17,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18565 | &(sPostFixPredicateTree[0])); |
| 18566 | } |
| 18567 | |
| 18568 | { |
| 18569 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18570 | |
| 18571 | static unsigned int sEndGuardMap[] = { 14 }; |
| 18572 | |
| 18573 | static int sPostFixPredicateTree[] = { 0 }; |
| 18574 | |
| 18575 | _SFD_CV_INIT_TRANS(180,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18576 | &(sPostFixPredicateTree[0])); |
| 18577 | } |
| 18578 | |
| 18579 | { |
| 18580 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18581 | |
| 18582 | static unsigned int sEndRelationalopMap[] = { 14 }; |
| 18583 | |
| 18584 | static int sRelationalopEps[] = { 0 }; |
| 18585 | |
| 18586 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 18587 | |
| 18588 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(180,1,&(sStartRelationalopMap[0]), |
| 18589 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18590 | &(sRelationalopType[0])); |
| 18591 | } |
| 18592 | |
| 18593 | { |
| 18594 | static unsigned int sStartGuardMap[] = { 1, 27 }; |
| 18595 | |
| 18596 | static unsigned int sEndGuardMap[] = { 23, 47 }; |
| 18597 | |
| 18598 | static int sPostFixPredicateTree[] = { 0, 1, -2 }; |
| 18599 | |
| 18600 | _SFD_CV_INIT_TRANS(15,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18601 | &(sPostFixPredicateTree[0])); |
| 18602 | } |
| 18603 | |
| 18604 | { |
| 18605 | static unsigned int sStartGuardMap[] = { 0 }; |
| 18606 | |
| 18607 | static unsigned int sEndGuardMap[] = { 19 }; |
| 18608 | |
| 18609 | static int sPostFixPredicateTree[] = { 0 }; |
| 18610 | |
| 18611 | _SFD_CV_INIT_TRANS(16,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18612 | &(sPostFixPredicateTree[0])); |
| 18613 | } |
| 18614 | |
| 18615 | { |
| 18616 | static unsigned int sStartGuardMap[] = { 0, 12, 28 }; |
| 18617 | |
| 18618 | static unsigned int sEndGuardMap[] = { 11, 24, 41 }; |
| 18619 | |
| 18620 | static int sPostFixPredicateTree[] = { 0, 1, 2, -2, -3 }; |
| 18621 | |
| 18622 | _SFD_CV_INIT_TRANS(2,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, |
| 18623 | &(sPostFixPredicateTree[0])); |
| 18624 | } |
| 18625 | |
| 18626 | { |
| 18627 | static unsigned int sStartRelationalopMap[] = { 12, 28 }; |
| 18628 | |
| 18629 | static unsigned int sEndRelationalopMap[] = { 24, 41 }; |
| 18630 | |
| 18631 | static int sRelationalopEps[] = { 0, 0 }; |
| 18632 | |
| 18633 | static int sRelationalopType[] = { 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, |
| 18634 | 2, 0, 2, 0, 2, 0 }; |
| 18635 | |
| 18636 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(2,2,&(sStartRelationalopMap[0]), |
| 18637 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18638 | &(sRelationalopType[0])); |
| 18639 | } |
| 18640 | |
| 18641 | { |
| 18642 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18643 | |
| 18644 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18645 | |
| 18646 | static int sPostFixPredicateTree[] = { 0 }; |
| 18647 | |
| 18648 | _SFD_CV_INIT_TRANS(7,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18649 | &(sPostFixPredicateTree[0])); |
| 18650 | } |
| 18651 | |
| 18652 | { |
| 18653 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18654 | |
| 18655 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18656 | |
| 18657 | static int sRelationalopEps[] = { 0 }; |
| 18658 | |
| 18659 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18660 | |
| 18661 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(7,1,&(sStartRelationalopMap[0]), |
| 18662 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18663 | &(sRelationalopType[0])); |
| 18664 | } |
| 18665 | |
| 18666 | _SFD_CV_INIT_TRANS(8,0,NULL,NULL,0,NULL); |
| 18667 | _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); |
| 18668 | _SFD_CV_INIT_TRANS(1,0,NULL,NULL,0,NULL); |
| 18669 | _SFD_CV_INIT_TRANS(18,0,NULL,NULL,0,NULL); |
| 18670 | |
| 18671 | { |
| 18672 | static unsigned int sStartGuardMap[] = { 0 }; |
| 18673 | |
| 18674 | static unsigned int sEndGuardMap[] = { 13 }; |
| 18675 | |
| 18676 | static int sPostFixPredicateTree[] = { 0 }; |
| 18677 | |
| 18678 | _SFD_CV_INIT_TRANS(3,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18679 | &(sPostFixPredicateTree[0])); |
| 18680 | } |
| 18681 | |
| 18682 | { |
| 18683 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18684 | |
| 18685 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18686 | |
| 18687 | static int sPostFixPredicateTree[] = { 0 }; |
| 18688 | |
| 18689 | _SFD_CV_INIT_TRANS(12,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18690 | &(sPostFixPredicateTree[0])); |
| 18691 | } |
| 18692 | |
| 18693 | { |
| 18694 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18695 | |
| 18696 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18697 | |
| 18698 | static int sRelationalopEps[] = { 0 }; |
| 18699 | |
| 18700 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18701 | |
| 18702 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(12,1,&(sStartRelationalopMap[0]), |
| 18703 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18704 | &(sRelationalopType[0])); |
| 18705 | } |
| 18706 | |
| 18707 | { |
| 18708 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18709 | |
| 18710 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18711 | |
| 18712 | static int sPostFixPredicateTree[] = { 0 }; |
| 18713 | |
| 18714 | _SFD_CV_INIT_TRANS(6,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18715 | &(sPostFixPredicateTree[0])); |
| 18716 | } |
| 18717 | |
| 18718 | { |
| 18719 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18720 | |
| 18721 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18722 | |
| 18723 | static int sRelationalopEps[] = { 0 }; |
| 18724 | |
| 18725 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18726 | |
| 18727 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(6,1,&(sStartRelationalopMap[0]), |
| 18728 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18729 | &(sRelationalopType[0])); |
| 18730 | } |
| 18731 | |
| 18732 | { |
| 18733 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18734 | |
| 18735 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18736 | |
| 18737 | static int sPostFixPredicateTree[] = { 0 }; |
| 18738 | |
| 18739 | _SFD_CV_INIT_TRANS(4,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18740 | &(sPostFixPredicateTree[0])); |
| 18741 | } |
| 18742 | |
| 18743 | { |
| 18744 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18745 | |
| 18746 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18747 | |
| 18748 | static int sRelationalopEps[] = { 0 }; |
| 18749 | |
| 18750 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18751 | |
| 18752 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(4,1,&(sStartRelationalopMap[0]), |
| 18753 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18754 | &(sRelationalopType[0])); |
| 18755 | } |
| 18756 | |
| 18757 | { |
| 18758 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18759 | |
| 18760 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18761 | |
| 18762 | static int sPostFixPredicateTree[] = { 0 }; |
| 18763 | |
| 18764 | _SFD_CV_INIT_TRANS(5,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18765 | &(sPostFixPredicateTree[0])); |
| 18766 | } |
| 18767 | |
| 18768 | { |
| 18769 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18770 | |
| 18771 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18772 | |
| 18773 | static int sRelationalopEps[] = { 0 }; |
| 18774 | |
| 18775 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18776 | |
| 18777 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(5,1,&(sStartRelationalopMap[0]), |
| 18778 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18779 | &(sRelationalopType[0])); |
| 18780 | } |
| 18781 | |
| 18782 | _SFD_CV_INIT_TRANS(65,0,NULL,NULL,0,NULL); |
| 18783 | _SFD_CV_INIT_TRANS(66,0,NULL,NULL,0,NULL); |
| 18784 | |
| 18785 | { |
| 18786 | static unsigned int sStartGuardMap[] = { 1, 34 }; |
| 18787 | |
| 18788 | static unsigned int sEndGuardMap[] = { 30, 53 }; |
| 18789 | |
| 18790 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18791 | |
| 18792 | _SFD_CV_INIT_TRANS(64,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18793 | &(sPostFixPredicateTree[0])); |
| 18794 | } |
| 18795 | |
| 18796 | { |
| 18797 | static unsigned int sStartRelationalopMap[] = { 34 }; |
| 18798 | |
| 18799 | static unsigned int sEndRelationalopMap[] = { 53 }; |
| 18800 | |
| 18801 | static int sRelationalopEps[] = { 0 }; |
| 18802 | |
| 18803 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18804 | |
| 18805 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(64,1,&(sStartRelationalopMap[0]), |
| 18806 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18807 | &(sRelationalopType[0])); |
| 18808 | } |
| 18809 | |
| 18810 | _SFD_CV_INIT_TRANS(75,0,NULL,NULL,0,NULL); |
| 18811 | _SFD_CV_INIT_TRANS(76,0,NULL,NULL,0,NULL); |
| 18812 | |
| 18813 | { |
| 18814 | static unsigned int sStartGuardMap[] = { 2 }; |
| 18815 | |
| 18816 | static unsigned int sEndGuardMap[] = { 31 }; |
| 18817 | |
| 18818 | static int sPostFixPredicateTree[] = { 0, -1 }; |
| 18819 | |
| 18820 | _SFD_CV_INIT_TRANS(77,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),2, |
| 18821 | &(sPostFixPredicateTree[0])); |
| 18822 | } |
| 18823 | |
| 18824 | _SFD_CV_INIT_TRANS(61,0,NULL,NULL,0,NULL); |
| 18825 | _SFD_CV_INIT_TRANS(63,0,NULL,NULL,0,NULL); |
| 18826 | |
| 18827 | { |
| 18828 | static unsigned int sStartGuardMap[] = { 1, 34 }; |
| 18829 | |
| 18830 | static unsigned int sEndGuardMap[] = { 30, 53 }; |
| 18831 | |
| 18832 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18833 | |
| 18834 | _SFD_CV_INIT_TRANS(62,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18835 | &(sPostFixPredicateTree[0])); |
| 18836 | } |
| 18837 | |
| 18838 | { |
| 18839 | static unsigned int sStartRelationalopMap[] = { 34 }; |
| 18840 | |
| 18841 | static unsigned int sEndRelationalopMap[] = { 53 }; |
| 18842 | |
| 18843 | static int sRelationalopEps[] = { 0 }; |
| 18844 | |
| 18845 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18846 | |
| 18847 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(62,1,&(sStartRelationalopMap[0]), |
| 18848 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18849 | &(sRelationalopType[0])); |
| 18850 | } |
| 18851 | |
| 18852 | { |
| 18853 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18854 | |
| 18855 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18856 | |
| 18857 | static int sPostFixPredicateTree[] = { 0 }; |
| 18858 | |
| 18859 | _SFD_CV_INIT_TRANS(11,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18860 | &(sPostFixPredicateTree[0])); |
| 18861 | } |
| 18862 | |
| 18863 | { |
| 18864 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18865 | |
| 18866 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18867 | |
| 18868 | static int sRelationalopEps[] = { 0 }; |
| 18869 | |
| 18870 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18871 | |
| 18872 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(11,1,&(sStartRelationalopMap[0]), |
| 18873 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18874 | &(sRelationalopType[0])); |
| 18875 | } |
| 18876 | |
| 18877 | { |
| 18878 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18879 | |
| 18880 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18881 | |
| 18882 | static int sPostFixPredicateTree[] = { 0 }; |
| 18883 | |
| 18884 | _SFD_CV_INIT_TRANS(10,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18885 | &(sPostFixPredicateTree[0])); |
| 18886 | } |
| 18887 | |
| 18888 | { |
| 18889 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18890 | |
| 18891 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18892 | |
| 18893 | static int sRelationalopEps[] = { 0 }; |
| 18894 | |
| 18895 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18896 | |
| 18897 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(10,1,&(sStartRelationalopMap[0]), |
| 18898 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18899 | &(sRelationalopType[0])); |
| 18900 | } |
| 18901 | |
| 18902 | { |
| 18903 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18904 | |
| 18905 | static unsigned int sEndGuardMap[] = { 18 }; |
| 18906 | |
| 18907 | static int sPostFixPredicateTree[] = { 0 }; |
| 18908 | |
| 18909 | _SFD_CV_INIT_TRANS(9,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18910 | &(sPostFixPredicateTree[0])); |
| 18911 | } |
| 18912 | |
| 18913 | { |
| 18914 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18915 | |
| 18916 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 18917 | |
| 18918 | static int sRelationalopEps[] = { 0 }; |
| 18919 | |
| 18920 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 18921 | |
| 18922 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(9,1,&(sStartRelationalopMap[0]), |
| 18923 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18924 | &(sRelationalopType[0])); |
| 18925 | } |
| 18926 | |
| 18927 | _SFD_CV_INIT_TRANS(68,0,NULL,NULL,0,NULL); |
| 18928 | |
| 18929 | { |
| 18930 | static unsigned int sStartGuardMap[] = { 1, 36 }; |
| 18931 | |
| 18932 | static unsigned int sEndGuardMap[] = { 30, 55 }; |
| 18933 | |
| 18934 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 18935 | |
| 18936 | _SFD_CV_INIT_TRANS(67,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 18937 | &(sPostFixPredicateTree[0])); |
| 18938 | } |
| 18939 | |
| 18940 | { |
| 18941 | static unsigned int sStartRelationalopMap[] = { 36 }; |
| 18942 | |
| 18943 | static unsigned int sEndRelationalopMap[] = { 55 }; |
| 18944 | |
| 18945 | static int sRelationalopEps[] = { 0 }; |
| 18946 | |
| 18947 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18948 | |
| 18949 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(67,1,&(sStartRelationalopMap[0]), |
| 18950 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18951 | &(sRelationalopType[0])); |
| 18952 | } |
| 18953 | |
| 18954 | _SFD_CV_INIT_TRANS(70,0,NULL,NULL,0,NULL); |
| 18955 | |
| 18956 | { |
| 18957 | static unsigned int sStartGuardMap[] = { 2, 37 }; |
| 18958 | |
| 18959 | static unsigned int sEndGuardMap[] = { 33, 56 }; |
| 18960 | |
| 18961 | static int sPostFixPredicateTree[] = { 0, -1, 1, -3 }; |
| 18962 | |
| 18963 | _SFD_CV_INIT_TRANS(69,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),4, |
| 18964 | &(sPostFixPredicateTree[0])); |
| 18965 | } |
| 18966 | |
| 18967 | { |
| 18968 | static unsigned int sStartRelationalopMap[] = { 37 }; |
| 18969 | |
| 18970 | static unsigned int sEndRelationalopMap[] = { 56 }; |
| 18971 | |
| 18972 | static int sRelationalopEps[] = { 0 }; |
| 18973 | |
| 18974 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 18975 | |
| 18976 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(69,1,&(sStartRelationalopMap[0]), |
| 18977 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 18978 | &(sRelationalopType[0])); |
| 18979 | } |
| 18980 | |
| 18981 | _SFD_CV_INIT_TRANS(71,0,NULL,NULL,0,NULL); |
| 18982 | _SFD_CV_INIT_TRANS(210,0,NULL,NULL,0,NULL); |
| 18983 | _SFD_CV_INIT_TRANS(73,0,NULL,NULL,0,NULL); |
| 18984 | _SFD_CV_INIT_TRANS(74,0,NULL,NULL,0,NULL); |
| 18985 | |
| 18986 | { |
| 18987 | static unsigned int sStartGuardMap[] = { 1 }; |
| 18988 | |
| 18989 | static unsigned int sEndGuardMap[] = { 19 }; |
| 18990 | |
| 18991 | static int sPostFixPredicateTree[] = { 0 }; |
| 18992 | |
| 18993 | _SFD_CV_INIT_TRANS(72,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 18994 | &(sPostFixPredicateTree[0])); |
| 18995 | } |
| 18996 | |
| 18997 | { |
| 18998 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 18999 | |
| 19000 | static unsigned int sEndRelationalopMap[] = { 19 }; |
| 19001 | |
| 19002 | static int sRelationalopEps[] = { 0 }; |
| 19003 | |
| 19004 | static int sRelationalopType[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2 }; |
| 19005 | |
| 19006 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(72,1,&(sStartRelationalopMap[0]), |
| 19007 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19008 | &(sRelationalopType[0])); |
| 19009 | } |
| 19010 | |
| 19011 | _SFD_CV_INIT_TRANS(205,0,NULL,NULL,0,NULL); |
| 19012 | |
| 19013 | { |
| 19014 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19015 | |
| 19016 | static unsigned int sEndGuardMap[] = { 12 }; |
| 19017 | |
| 19018 | static int sPostFixPredicateTree[] = { 0 }; |
| 19019 | |
| 19020 | _SFD_CV_INIT_TRANS(206,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19021 | &(sPostFixPredicateTree[0])); |
| 19022 | } |
| 19023 | |
| 19024 | { |
| 19025 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19026 | |
| 19027 | static unsigned int sEndRelationalopMap[] = { 12 }; |
| 19028 | |
| 19029 | static int sRelationalopEps[] = { 0 }; |
| 19030 | |
| 19031 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 19032 | |
| 19033 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(206,1,&(sStartRelationalopMap[0]), |
| 19034 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19035 | &(sRelationalopType[0])); |
| 19036 | } |
| 19037 | |
| 19038 | _SFD_CV_INIT_TRANS(208,0,NULL,NULL,0,NULL); |
| 19039 | _SFD_CV_INIT_TRANS(207,0,NULL,NULL,0,NULL); |
| 19040 | _SFD_CV_INIT_TRANS(19,0,NULL,NULL,0,NULL); |
| 19041 | |
| 19042 | { |
| 19043 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19044 | |
| 19045 | static unsigned int sEndGuardMap[] = { 24 }; |
| 19046 | |
| 19047 | static int sPostFixPredicateTree[] = { 0 }; |
| 19048 | |
| 19049 | _SFD_CV_INIT_TRANS(20,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19050 | &(sPostFixPredicateTree[0])); |
| 19051 | } |
| 19052 | |
| 19053 | { |
| 19054 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19055 | |
| 19056 | static unsigned int sEndGuardMap[] = { 30 }; |
| 19057 | |
| 19058 | static int sPostFixPredicateTree[] = { 0 }; |
| 19059 | |
| 19060 | _SFD_CV_INIT_TRANS(34,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19061 | &(sPostFixPredicateTree[0])); |
| 19062 | } |
| 19063 | |
| 19064 | _SFD_CV_INIT_TRANS(21,0,NULL,NULL,0,NULL); |
| 19065 | _SFD_CV_INIT_TRANS(36,0,NULL,NULL,0,NULL); |
| 19066 | _SFD_CV_INIT_TRANS(35,0,NULL,NULL,0,NULL); |
| 19067 | |
| 19068 | { |
| 19069 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19070 | |
| 19071 | static unsigned int sEndGuardMap[] = { 23 }; |
| 19072 | |
| 19073 | static int sPostFixPredicateTree[] = { 0 }; |
| 19074 | |
| 19075 | _SFD_CV_INIT_TRANS(22,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19076 | &(sPostFixPredicateTree[0])); |
| 19077 | } |
| 19078 | |
| 19079 | { |
| 19080 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19081 | |
| 19082 | static unsigned int sEndGuardMap[] = { 30 }; |
| 19083 | |
| 19084 | static int sPostFixPredicateTree[] = { 0 }; |
| 19085 | |
| 19086 | _SFD_CV_INIT_TRANS(48,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19087 | &(sPostFixPredicateTree[0])); |
| 19088 | } |
| 19089 | |
| 19090 | _SFD_CV_INIT_TRANS(49,0,NULL,NULL,0,NULL); |
| 19091 | _SFD_CV_INIT_TRANS(56,0,NULL,NULL,0,NULL); |
| 19092 | _SFD_CV_INIT_TRANS(23,0,NULL,NULL,0,NULL); |
| 19093 | |
| 19094 | { |
| 19095 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19096 | |
| 19097 | static unsigned int sEndGuardMap[] = { 26 }; |
| 19098 | |
| 19099 | static int sPostFixPredicateTree[] = { 0 }; |
| 19100 | |
| 19101 | _SFD_CV_INIT_TRANS(24,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19102 | &(sPostFixPredicateTree[0])); |
| 19103 | } |
| 19104 | |
| 19105 | { |
| 19106 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19107 | |
| 19108 | static unsigned int sEndGuardMap[] = { 30 }; |
| 19109 | |
| 19110 | static int sPostFixPredicateTree[] = { 0 }; |
| 19111 | |
| 19112 | _SFD_CV_INIT_TRANS(37,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19113 | &(sPostFixPredicateTree[0])); |
| 19114 | } |
| 19115 | |
| 19116 | _SFD_CV_INIT_TRANS(25,0,NULL,NULL,0,NULL); |
| 19117 | _SFD_CV_INIT_TRANS(38,0,NULL,NULL,0,NULL); |
| 19118 | _SFD_CV_INIT_TRANS(39,0,NULL,NULL,0,NULL); |
| 19119 | |
| 19120 | { |
| 19121 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19122 | |
| 19123 | static unsigned int sEndGuardMap[] = { 14 }; |
| 19124 | |
| 19125 | static int sPostFixPredicateTree[] = { 0 }; |
| 19126 | |
| 19127 | _SFD_CV_INIT_TRANS(46,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19128 | &(sPostFixPredicateTree[0])); |
| 19129 | } |
| 19130 | |
| 19131 | { |
| 19132 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19133 | |
| 19134 | static unsigned int sEndRelationalopMap[] = { 14 }; |
| 19135 | |
| 19136 | static int sRelationalopEps[] = { 0 }; |
| 19137 | |
| 19138 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 19139 | |
| 19140 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(46,1,&(sStartRelationalopMap[0]), |
| 19141 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19142 | &(sRelationalopType[0])); |
| 19143 | } |
| 19144 | |
| 19145 | _SFD_CV_INIT_TRANS(57,0,NULL,NULL,0,NULL); |
| 19146 | _SFD_CV_INIT_TRANS(52,0,NULL,NULL,0,NULL); |
| 19147 | |
| 19148 | { |
| 19149 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19150 | |
| 19151 | static unsigned int sEndGuardMap[] = { 24 }; |
| 19152 | |
| 19153 | static int sPostFixPredicateTree[] = { 0 }; |
| 19154 | |
| 19155 | _SFD_CV_INIT_TRANS(26,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19156 | &(sPostFixPredicateTree[0])); |
| 19157 | } |
| 19158 | |
| 19159 | { |
| 19160 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19161 | |
| 19162 | static unsigned int sEndGuardMap[] = { 30 }; |
| 19163 | |
| 19164 | static int sPostFixPredicateTree[] = { 0 }; |
| 19165 | |
| 19166 | _SFD_CV_INIT_TRANS(40,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19167 | &(sPostFixPredicateTree[0])); |
| 19168 | } |
| 19169 | |
| 19170 | { |
| 19171 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19172 | |
| 19173 | static unsigned int sEndGuardMap[] = { 14 }; |
| 19174 | |
| 19175 | static int sPostFixPredicateTree[] = { 0 }; |
| 19176 | |
| 19177 | _SFD_CV_INIT_TRANS(51,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19178 | &(sPostFixPredicateTree[0])); |
| 19179 | } |
| 19180 | |
| 19181 | { |
| 19182 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19183 | |
| 19184 | static unsigned int sEndRelationalopMap[] = { 14 }; |
| 19185 | |
| 19186 | static int sRelationalopEps[] = { 0 }; |
| 19187 | |
| 19188 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 19189 | |
| 19190 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(51,1,&(sStartRelationalopMap[0]), |
| 19191 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19192 | &(sRelationalopType[0])); |
| 19193 | } |
| 19194 | |
| 19195 | _SFD_CV_INIT_TRANS(58,0,NULL,NULL,0,NULL); |
| 19196 | _SFD_CV_INIT_TRANS(27,0,NULL,NULL,0,NULL); |
| 19197 | _SFD_CV_INIT_TRANS(41,0,NULL,NULL,0,NULL); |
| 19198 | _SFD_CV_INIT_TRANS(42,0,NULL,NULL,0,NULL); |
| 19199 | _SFD_CV_INIT_TRANS(50,0,NULL,NULL,0,NULL); |
| 19200 | |
| 19201 | { |
| 19202 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19203 | |
| 19204 | static unsigned int sEndGuardMap[] = { 28 }; |
| 19205 | |
| 19206 | static int sPostFixPredicateTree[] = { 0 }; |
| 19207 | |
| 19208 | _SFD_CV_INIT_TRANS(28,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19209 | &(sPostFixPredicateTree[0])); |
| 19210 | } |
| 19211 | |
| 19212 | { |
| 19213 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19214 | |
| 19215 | static unsigned int sEndGuardMap[] = { 14 }; |
| 19216 | |
| 19217 | static int sPostFixPredicateTree[] = { 0 }; |
| 19218 | |
| 19219 | _SFD_CV_INIT_TRANS(54,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19220 | &(sPostFixPredicateTree[0])); |
| 19221 | } |
| 19222 | |
| 19223 | { |
| 19224 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19225 | |
| 19226 | static unsigned int sEndRelationalopMap[] = { 14 }; |
| 19227 | |
| 19228 | static int sRelationalopEps[] = { 0 }; |
| 19229 | |
| 19230 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 19231 | |
| 19232 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(54,1,&(sStartRelationalopMap[0]), |
| 19233 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19234 | &(sRelationalopType[0])); |
| 19235 | } |
| 19236 | |
| 19237 | _SFD_CV_INIT_TRANS(59,0,NULL,NULL,0,NULL); |
| 19238 | _SFD_CV_INIT_TRANS(29,0,NULL,NULL,0,NULL); |
| 19239 | _SFD_CV_INIT_TRANS(43,0,NULL,NULL,0,NULL); |
| 19240 | _SFD_CV_INIT_TRANS(55,0,NULL,NULL,0,NULL); |
| 19241 | |
| 19242 | { |
| 19243 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19244 | |
| 19245 | static unsigned int sEndGuardMap[] = { 27 }; |
| 19246 | |
| 19247 | static int sPostFixPredicateTree[] = { 0 }; |
| 19248 | |
| 19249 | _SFD_CV_INIT_TRANS(30,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19250 | &(sPostFixPredicateTree[0])); |
| 19251 | } |
| 19252 | |
| 19253 | { |
| 19254 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19255 | |
| 19256 | static unsigned int sEndGuardMap[] = { 14 }; |
| 19257 | |
| 19258 | static int sPostFixPredicateTree[] = { 0 }; |
| 19259 | |
| 19260 | _SFD_CV_INIT_TRANS(47,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19261 | &(sPostFixPredicateTree[0])); |
| 19262 | } |
| 19263 | |
| 19264 | { |
| 19265 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19266 | |
| 19267 | static unsigned int sEndRelationalopMap[] = { 14 }; |
| 19268 | |
| 19269 | static int sRelationalopEps[] = { 0 }; |
| 19270 | |
| 19271 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 19272 | |
| 19273 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(47,1,&(sStartRelationalopMap[0]), |
| 19274 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19275 | &(sRelationalopType[0])); |
| 19276 | } |
| 19277 | |
| 19278 | _SFD_CV_INIT_TRANS(60,0,NULL,NULL,0,NULL); |
| 19279 | _SFD_CV_INIT_TRANS(31,0,NULL,NULL,0,NULL); |
| 19280 | _SFD_CV_INIT_TRANS(44,0,NULL,NULL,0,NULL); |
| 19281 | _SFD_CV_INIT_TRANS(53,0,NULL,NULL,0,NULL); |
| 19282 | |
| 19283 | { |
| 19284 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19285 | |
| 19286 | static unsigned int sEndGuardMap[] = { 30 }; |
| 19287 | |
| 19288 | static int sPostFixPredicateTree[] = { 0 }; |
| 19289 | |
| 19290 | _SFD_CV_INIT_TRANS(32,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19291 | &(sPostFixPredicateTree[0])); |
| 19292 | } |
| 19293 | |
| 19294 | _SFD_CV_INIT_TRANS(33,0,NULL,NULL,0,NULL); |
| 19295 | _SFD_CV_INIT_TRANS(45,0,NULL,NULL,0,NULL); |
| 19296 | _SFD_CV_INIT_TRANS(98,0,NULL,NULL,0,NULL); |
| 19297 | _SFD_CV_INIT_TRANS(99,0,NULL,NULL,0,NULL); |
| 19298 | _SFD_CV_INIT_TRANS(148,0,NULL,NULL,0,NULL); |
| 19299 | |
| 19300 | { |
| 19301 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19302 | |
| 19303 | static unsigned int sEndGuardMap[] = { 18 }; |
| 19304 | |
| 19305 | static int sPostFixPredicateTree[] = { 0 }; |
| 19306 | |
| 19307 | _SFD_CV_INIT_TRANS(149,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19308 | &(sPostFixPredicateTree[0])); |
| 19309 | } |
| 19310 | |
| 19311 | { |
| 19312 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19313 | |
| 19314 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 19315 | |
| 19316 | static int sRelationalopEps[] = { -1 }; |
| 19317 | |
| 19318 | static int sRelationalopType[] = { 5, 5, 5, 5, 5, 5, 5, 5, 5 }; |
| 19319 | |
| 19320 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(149,1,&(sStartRelationalopMap[0]), |
| 19321 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19322 | &(sRelationalopType[0])); |
| 19323 | } |
| 19324 | |
| 19325 | _SFD_CV_INIT_TRANS(150,0,NULL,NULL,0,NULL); |
| 19326 | _SFD_CV_INIT_TRANS(95,0,NULL,NULL,0,NULL); |
| 19327 | _SFD_CV_INIT_TRANS(96,0,NULL,NULL,0,NULL); |
| 19328 | |
| 19329 | { |
| 19330 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19331 | |
| 19332 | static unsigned int sEndGuardMap[] = { 23 }; |
| 19333 | |
| 19334 | static int sPostFixPredicateTree[] = { 0 }; |
| 19335 | |
| 19336 | _SFD_CV_INIT_TRANS(146,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19337 | &(sPostFixPredicateTree[0])); |
| 19338 | } |
| 19339 | |
| 19340 | { |
| 19341 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19342 | |
| 19343 | static unsigned int sEndRelationalopMap[] = { 23 }; |
| 19344 | |
| 19345 | static int sRelationalopEps[] = { 0 }; |
| 19346 | |
| 19347 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 19348 | |
| 19349 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(146,1,&(sStartRelationalopMap[0]), |
| 19350 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19351 | &(sRelationalopType[0])); |
| 19352 | } |
| 19353 | |
| 19354 | { |
| 19355 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19356 | |
| 19357 | static unsigned int sEndGuardMap[] = { 23 }; |
| 19358 | |
| 19359 | static int sPostFixPredicateTree[] = { 0 }; |
| 19360 | |
| 19361 | _SFD_CV_INIT_TRANS(93,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19362 | &(sPostFixPredicateTree[0])); |
| 19363 | } |
| 19364 | |
| 19365 | { |
| 19366 | static unsigned int sStartRelationalopMap[] = { 1, 1, 1 }; |
| 19367 | |
| 19368 | static unsigned int sEndRelationalopMap[] = { 23, 23, 23 }; |
| 19369 | |
| 19370 | static int sRelationalopEps[] = { 0, 0, 0 }; |
| 19371 | |
| 19372 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 19373 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 19374 | |
| 19375 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(93,3,&(sStartRelationalopMap[0]), |
| 19376 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19377 | &(sRelationalopType[0])); |
| 19378 | } |
| 19379 | |
| 19380 | _SFD_CV_INIT_TRANS(97,0,NULL,NULL,0,NULL); |
| 19381 | |
| 19382 | { |
| 19383 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19384 | |
| 19385 | static unsigned int sEndGuardMap[] = { 18 }; |
| 19386 | |
| 19387 | static int sPostFixPredicateTree[] = { 0 }; |
| 19388 | |
| 19389 | _SFD_CV_INIT_TRANS(94,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19390 | &(sPostFixPredicateTree[0])); |
| 19391 | } |
| 19392 | |
| 19393 | { |
| 19394 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19395 | |
| 19396 | static unsigned int sEndRelationalopMap[] = { 18 }; |
| 19397 | |
| 19398 | static int sRelationalopEps[] = { 0 }; |
| 19399 | |
| 19400 | static int sRelationalopType[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3 }; |
| 19401 | |
| 19402 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(94,1,&(sStartRelationalopMap[0]), |
| 19403 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19404 | &(sRelationalopType[0])); |
| 19405 | } |
| 19406 | |
| 19407 | _SFD_CV_INIT_TRANS(147,0,NULL,NULL,0,NULL); |
| 19408 | _SFD_CV_INIT_TRANS(182,0,NULL,NULL,0,NULL); |
| 19409 | |
| 19410 | { |
| 19411 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19412 | |
| 19413 | static unsigned int sEndGuardMap[] = { 66 }; |
| 19414 | |
| 19415 | static int sPostFixPredicateTree[] = { 0 }; |
| 19416 | |
| 19417 | _SFD_CV_INIT_TRANS(181,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19418 | &(sPostFixPredicateTree[0])); |
| 19419 | } |
| 19420 | |
| 19421 | { |
| 19422 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19423 | |
| 19424 | static unsigned int sEndRelationalopMap[] = { 66 }; |
| 19425 | |
| 19426 | static int sRelationalopEps[] = { 0 }; |
| 19427 | |
| 19428 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 19429 | |
| 19430 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(181,1,&(sStartRelationalopMap[0]), |
| 19431 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19432 | &(sRelationalopType[0])); |
| 19433 | } |
| 19434 | |
| 19435 | { |
| 19436 | static unsigned int sStartGuardMap[] = { 1, 28 }; |
| 19437 | |
| 19438 | static unsigned int sEndGuardMap[] = { 24, 50 }; |
| 19439 | |
| 19440 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 19441 | |
| 19442 | _SFD_CV_INIT_TRANS(121,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 19443 | &(sPostFixPredicateTree[0])); |
| 19444 | } |
| 19445 | |
| 19446 | { |
| 19447 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19448 | |
| 19449 | static unsigned int sEndRelationalopMap[] = { 24 }; |
| 19450 | |
| 19451 | static int sRelationalopEps[] = { 0 }; |
| 19452 | |
| 19453 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 19454 | |
| 19455 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(121,1,&(sStartRelationalopMap[0]), |
| 19456 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19457 | &(sRelationalopType[0])); |
| 19458 | } |
| 19459 | |
| 19460 | _SFD_CV_INIT_TRANS(120,0,NULL,NULL,0,NULL); |
| 19461 | |
| 19462 | { |
| 19463 | static unsigned int sStartGuardMap[] = { 1, 32 }; |
| 19464 | |
| 19465 | static unsigned int sEndGuardMap[] = { 28, 58 }; |
| 19466 | |
| 19467 | static int sPostFixPredicateTree[] = { 0, 1, -3 }; |
| 19468 | |
| 19469 | _SFD_CV_INIT_TRANS(152,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, |
| 19470 | &(sPostFixPredicateTree[0])); |
| 19471 | } |
| 19472 | |
| 19473 | { |
| 19474 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19475 | |
| 19476 | static unsigned int sEndRelationalopMap[] = { 28 }; |
| 19477 | |
| 19478 | static int sRelationalopEps[] = { 0 }; |
| 19479 | |
| 19480 | static int sRelationalopType[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 }; |
| 19481 | |
| 19482 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(152,1,&(sStartRelationalopMap[0]), |
| 19483 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19484 | &(sRelationalopType[0])); |
| 19485 | } |
| 19486 | |
| 19487 | _SFD_CV_INIT_TRANS(155,0,NULL,NULL,0,NULL); |
| 19488 | |
| 19489 | { |
| 19490 | static unsigned int sStartGuardMap[] = { 1 }; |
| 19491 | |
| 19492 | static unsigned int sEndGuardMap[] = { 16 }; |
| 19493 | |
| 19494 | static int sPostFixPredicateTree[] = { 0 }; |
| 19495 | |
| 19496 | _SFD_CV_INIT_TRANS(188,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, |
| 19497 | &(sPostFixPredicateTree[0])); |
| 19498 | } |
| 19499 | |
| 19500 | { |
| 19501 | static unsigned int sStartRelationalopMap[] = { 1 }; |
| 19502 | |
| 19503 | static unsigned int sEndRelationalopMap[] = { 16 }; |
| 19504 | |
| 19505 | static int sRelationalopEps[] = { 0 }; |
| 19506 | |
| 19507 | static int sRelationalopType[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 19508 | |
| 19509 | _SFD_CV_INIT_TRANSITION_RELATIONALOP(188,1,&(sStartRelationalopMap[0]), |
| 19510 | &(sEndRelationalopMap[0]),&(sRelationalopEps[0]), |
| 19511 | &(sRelationalopType[0])); |
| 19512 | } |
| 19513 | |
| 19514 | _SFD_CV_INIT_TRANS(213,0,NULL,NULL,0,NULL); |
| 19515 | _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19516 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19517 | _SFD_SET_DATA_COMPILED_PROPS(1,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19518 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19519 | _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19520 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19521 | _SFD_SET_DATA_COMPILED_PROPS(3,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19522 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19523 | _SFD_SET_DATA_COMPILED_PROPS(4,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19524 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19525 | _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19526 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19527 | _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19528 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19529 | _SFD_SET_DATA_COMPILED_PROPS(7,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19530 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19531 | _SFD_SET_DATA_COMPILED_PROPS(8,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19532 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19533 | _SFD_SET_DATA_COMPILED_PROPS(9,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19534 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19535 | _SFD_SET_DATA_COMPILED_PROPS(10,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19536 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19537 | _SFD_SET_DATA_COMPILED_PROPS(11,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19538 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19539 | _SFD_SET_DATA_COMPILED_PROPS(12,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19540 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19541 | _SFD_SET_DATA_COMPILED_PROPS(13,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19542 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19543 | _SFD_SET_DATA_COMPILED_PROPS(14,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19544 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19545 | _SFD_SET_DATA_COMPILED_PROPS(15,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19546 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19547 | _SFD_SET_DATA_COMPILED_PROPS(16,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19548 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19549 | _SFD_SET_DATA_COMPILED_PROPS(17,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19550 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19551 | _SFD_SET_DATA_COMPILED_PROPS(18,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19552 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19553 | _SFD_SET_DATA_COMPILED_PROPS(19,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19554 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19555 | _SFD_SET_DATA_COMPILED_PROPS(20,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19556 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19557 | _SFD_SET_DATA_COMPILED_PROPS(21,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19558 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19559 | _SFD_SET_DATA_COMPILED_PROPS(22,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19560 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19561 | |
| 19562 | { |
| 19563 | unsigned int dimVector[2]; |
| 19564 | dimVector[0]= 1U; |
| 19565 | dimVector[1]= 2U; |
| 19566 | _SFD_SET_DATA_COMPILED_PROPS(23,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0, |
| 19567 | 1.0,0,0,(MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType) |
| 19568 | c1_f_sf_marshallIn); |
| 19569 | } |
| 19570 | |
| 19571 | { |
| 19572 | unsigned int dimVector[2]; |
| 19573 | dimVector[0]= 1U; |
| 19574 | dimVector[1]= 2U; |
| 19575 | _SFD_SET_DATA_COMPILED_PROPS(24,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0, |
| 19576 | 1.0,0,0,(MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)NULL); |
| 19577 | } |
| 19578 | |
| 19579 | _SFD_SET_DATA_COMPILED_PROPS(25,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19580 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); |
| 19581 | |
| 19582 | { |
| 19583 | unsigned int dimVector[2]; |
| 19584 | dimVector[0]= 1U; |
| 19585 | dimVector[1]= 2U; |
| 19586 | _SFD_SET_DATA_COMPILED_PROPS(26,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0, |
| 19587 | 1.0,0,0,(MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)NULL); |
| 19588 | } |
| 19589 | |
| 19590 | _SFD_SET_DATA_COMPILED_PROPS(27,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19591 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); |
| 19592 | |
| 19593 | { |
| 19594 | unsigned int dimVector[2]; |
| 19595 | dimVector[0]= 1U; |
| 19596 | dimVector[1]= 2U; |
| 19597 | _SFD_SET_DATA_COMPILED_PROPS(28,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0, |
| 19598 | 1.0,0,0,(MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)NULL); |
| 19599 | } |
| 19600 | |
| 19601 | { |
| 19602 | unsigned int dimVector[2]; |
| 19603 | dimVector[0]= 1U; |
| 19604 | dimVector[1]= 16U; |
| 19605 | _SFD_SET_DATA_COMPILED_PROPS(29,SF_INT32,2,&(dimVector[0]),0,0,0,0.0, |
| 19606 | 1.0,0,0,(MexFcnForType)c1_f_sf_marshallOut,(MexInFcnForType)NULL); |
| 19607 | } |
| 19608 | |
| 19609 | { |
| 19610 | unsigned int dimVector[2]; |
| 19611 | dimVector[0]= 1U; |
| 19612 | dimVector[1]= 24U; |
| 19613 | _SFD_SET_DATA_COMPILED_PROPS(30,SF_INT32,2,&(dimVector[0]),0,0,0,0.0, |
| 19614 | 1.0,0,0,(MexFcnForType)c1_g_sf_marshallOut,(MexInFcnForType)NULL); |
| 19615 | } |
| 19616 | |
| 19617 | { |
| 19618 | unsigned int dimVector[2]; |
| 19619 | dimVector[0]= 1U; |
| 19620 | dimVector[1]= 2U; |
| 19621 | _SFD_SET_DATA_COMPILED_PROPS(31,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0, |
| 19622 | 1.0,0,0,(MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)NULL); |
| 19623 | } |
| 19624 | |
| 19625 | { |
| 19626 | unsigned int dimVector[2]; |
| 19627 | dimVector[0]= 1U; |
| 19628 | dimVector[1]= 16U; |
| 19629 | _SFD_SET_DATA_COMPILED_PROPS(32,SF_INT32,2,&(dimVector[0]),0,0,0,0.0, |
| 19630 | 1.0,0,0,(MexFcnForType)c1_f_sf_marshallOut,(MexInFcnForType)NULL); |
| 19631 | } |
| 19632 | |
| 19633 | _SFD_SET_DATA_COMPILED_PROPS(33,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19634 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); |
| 19635 | |
| 19636 | { |
| 19637 | unsigned int dimVector[2]; |
| 19638 | dimVector[0]= 1U; |
| 19639 | dimVector[1]= 8U; |
| 19640 | _SFD_SET_DATA_COMPILED_PROPS(34,SF_INT32,2,&(dimVector[0]),0,0,0,0.0, |
| 19641 | 1.0,0,0,(MexFcnForType)c1_h_sf_marshallOut,(MexInFcnForType)NULL); |
| 19642 | } |
| 19643 | |
| 19644 | _SFD_SET_DATA_COMPILED_PROPS(35,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19645 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19646 | |
| 19647 | { |
| 19648 | unsigned int dimVector[1]; |
| 19649 | dimVector[0]= 2U; |
| 19650 | _SFD_SET_DATA_COMPILED_PROPS(36,SF_UINT32,1,&(dimVector[0]),0,0,0,0.0, |
| 19651 | 1.0,0,0,(MexFcnForType)c1_i_sf_marshallOut,(MexInFcnForType)NULL); |
| 19652 | } |
| 19653 | |
| 19654 | _SFD_SET_DATA_COMPILED_PROPS(37,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19655 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19656 | _SFD_SET_DATA_COMPILED_PROPS(38,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19657 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19658 | _SFD_SET_DATA_COMPILED_PROPS(39,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19659 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19660 | _SFD_SET_DATA_COMPILED_PROPS(40,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19661 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19662 | _SFD_SET_DATA_COMPILED_PROPS(41,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19663 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19664 | _SFD_SET_DATA_COMPILED_PROPS(42,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19665 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19666 | _SFD_SET_DATA_COMPILED_PROPS(43,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19667 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19668 | _SFD_SET_DATA_COMPILED_PROPS(44,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19669 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)NULL); |
| 19670 | _SFD_SET_DATA_COMPILED_PROPS(45,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19671 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)NULL); |
| 19672 | _SFD_SET_DATA_COMPILED_PROPS(46,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19673 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19674 | _SFD_SET_DATA_COMPILED_PROPS(47,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19675 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19676 | |
| 19677 | { |
| 19678 | unsigned int dimVector[1]; |
| 19679 | dimVector[0]= 2U; |
| 19680 | _SFD_SET_DATA_COMPILED_PROPS(48,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0, |
| 19681 | 1.0,0,0,(MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType) |
| 19682 | c1_c_sf_marshallIn); |
| 19683 | } |
| 19684 | |
| 19685 | _SFD_SET_DATA_COMPILED_PROPS(49,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19686 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19687 | _SFD_SET_DATA_COMPILED_PROPS(50,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19688 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19689 | _SFD_SET_DATA_COMPILED_PROPS(51,SF_UINT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19690 | (MexFcnForType)c1_j_sf_marshallOut,(MexInFcnForType)c1_e_sf_marshallIn); |
| 19691 | _SFD_SET_DATA_COMPILED_PROPS(52,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19692 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)c1_d_sf_marshallIn); |
| 19693 | _SFD_SET_DATA_COMPILED_PROPS(53,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19694 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19695 | _SFD_SET_DATA_COMPILED_PROPS(54,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19696 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19697 | _SFD_SET_DATA_COMPILED_PROPS(55,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19698 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19699 | _SFD_SET_DATA_COMPILED_PROPS(56,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19700 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19701 | _SFD_SET_DATA_COMPILED_PROPS(57,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19702 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19703 | _SFD_SET_DATA_COMPILED_PROPS(58,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19704 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19705 | _SFD_SET_DATA_COMPILED_PROPS(59,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19706 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19707 | _SFD_SET_DATA_COMPILED_PROPS(60,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19708 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19709 | _SFD_SET_DATA_COMPILED_PROPS(61,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19710 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19711 | _SFD_SET_DATA_COMPILED_PROPS(62,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19712 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19713 | _SFD_SET_DATA_COMPILED_PROPS(63,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19714 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19715 | _SFD_SET_DATA_COMPILED_PROPS(64,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19716 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19717 | _SFD_SET_DATA_COMPILED_PROPS(65,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19718 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19719 | _SFD_SET_DATA_COMPILED_PROPS(66,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19720 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19721 | _SFD_SET_DATA_COMPILED_PROPS(67,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19722 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19723 | _SFD_SET_DATA_COMPILED_PROPS(68,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19724 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19725 | _SFD_SET_DATA_COMPILED_PROPS(69,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19726 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19727 | _SFD_SET_DATA_COMPILED_PROPS(70,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19728 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19729 | _SFD_SET_DATA_COMPILED_PROPS(71,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19730 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19731 | _SFD_SET_DATA_COMPILED_PROPS(72,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19732 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19733 | _SFD_SET_DATA_COMPILED_PROPS(73,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19734 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); |
| 19735 | _SFD_SET_DATA_COMPILED_PROPS(74,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19736 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19737 | _SFD_SET_DATA_COMPILED_PROPS(75,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19738 | (MexFcnForType)c1_e_sf_marshallOut,(MexInFcnForType)NULL); |
| 19739 | _SFD_SET_DATA_COMPILED_PROPS(76,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19740 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)NULL); |
| 19741 | _SFD_SET_DATA_COMPILED_PROPS(77,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19742 | (MexFcnForType)c1_n_sf_marshallOut,(MexInFcnForType)c1_j_sf_marshallIn); |
| 19743 | _SFD_SET_DATA_COMPILED_PROPS(78,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19744 | (MexFcnForType)c1_n_sf_marshallOut,(MexInFcnForType)c1_j_sf_marshallIn); |
| 19745 | _SFD_SET_DATA_COMPILED_PROPS(79,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19746 | (MexFcnForType)c1_m_sf_marshallOut,(MexInFcnForType)c1_i_sf_marshallIn); |
| 19747 | _SFD_SET_DATA_COMPILED_PROPS(80,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19748 | (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); |
| 19749 | _SFD_SET_DATA_COMPILED_PROPS(81,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19750 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19751 | _SFD_SET_DATA_COMPILED_PROPS(82,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19752 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19753 | _SFD_SET_DATA_COMPILED_PROPS(83,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19754 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19755 | _SFD_SET_DATA_COMPILED_PROPS(84,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19756 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19757 | _SFD_SET_DATA_COMPILED_PROPS(85,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19758 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19759 | _SFD_SET_DATA_COMPILED_PROPS(86,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19760 | (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); |
| 19761 | _SFD_SET_DATA_COMPILED_PROPS(87,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19762 | (MexFcnForType)c1_k_sf_marshallOut,(MexInFcnForType)c1_g_sf_marshallIn); |
| 19763 | _SFD_SET_DATA_COMPILED_PROPS(88,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, |
| 19764 | (MexFcnForType)c1_l_sf_marshallOut,(MexInFcnForType)c1_h_sf_marshallIn); |
| 19765 | _SFD_SET_DATA_VALUE_PTR(77,(void *)(NULL)); |
| 19766 | _SFD_SET_DATA_VALUE_PTR(78,(void *)(NULL)); |
| 19767 | _SFD_SET_DATA_VALUE_PTR(79,(void *)(NULL)); |
| 19768 | _SFD_SET_DATA_VALUE_PTR(80,(void *)(NULL)); |
| 19769 | _SFD_SET_DATA_VALUE_PTR(81,(void *)(NULL)); |
| 19770 | _SFD_SET_DATA_VALUE_PTR(82,(void *)(NULL)); |
| 19771 | _SFD_SET_DATA_VALUE_PTR(83,(void *)(NULL)); |
| 19772 | _SFD_SET_DATA_VALUE_PTR(84,(void *)(NULL)); |
| 19773 | _SFD_SET_DATA_VALUE_PTR(85,(void *)(NULL)); |
| 19774 | _SFD_SET_DATA_VALUE_PTR(86,(void *)(NULL)); |
| 19775 | _SFD_SET_DATA_VALUE_PTR(87,(void *)(NULL)); |
| 19776 | _SFD_SET_DATA_VALUE_PTR(88,(void *)(NULL)); |
| 19777 | } |
| 19778 | } else { |
| 19779 | sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, |
| 19780 | _GCU_Model_genCodeMachineNumber_,chartInstance->chartNumber, |
| 19781 | chartInstance->instanceNumber); |
| 19782 | } |
| 19783 | } |
| 19784 | } |
| 19785 | |
| 19786 | static void chart_debug_initialize_data_addresses(SimStruct *S) |
| 19787 | { |
| 19788 | if (!sim_mode_is_rtw_gen(S)) { |
| 19789 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance = |
| 19790 | (SFc1_GCU_Model_genCodeInstanceStruct *)sf_get_chart_instance_ptr(S); |
| 19791 | if (ssIsFirstInitCond(S)) { |
| 19792 | /* do this only if simulation is starting and after we know the addresses of all data */ |
| 19793 | { |
| 19794 | _SFD_SET_DATA_VALUE_PTR(47U, (void *)chartInstance->c1_clutchCurrVal); |
| 19795 | _SFD_SET_DATA_VALUE_PTR(48U, (void *)chartInstance->c1_lastModeCom); |
| 19796 | _SFD_SET_DATA_VALUE_PTR(24U, (void *)chartInstance->c1_shiftCom); |
| 19797 | _SFD_SET_DATA_VALUE_PTR(25U, (void *)chartInstance->c1_startEngCom); |
| 19798 | _SFD_SET_DATA_VALUE_PTR(26U, (void *)chartInstance->c1_aacCom); |
| 19799 | _SFD_SET_DATA_VALUE_PTR(27U, (void *)chartInstance->c1_clutchTarget); |
| 19800 | _SFD_SET_DATA_VALUE_PTR(22U, (void *)&chartInstance->c1_lastShift); |
| 19801 | _SFD_SET_DATA_VALUE_PTR(28U, (void *)chartInstance->c1_modeCom); |
| 19802 | _SFD_SET_DATA_VALUE_PTR(49U, (void *)chartInstance->c1_stateFb); |
| 19803 | _SFD_SET_DATA_VALUE_PTR(29U, (void *)chartInstance->c1_acc_parameters); |
| 19804 | _SFD_SET_DATA_VALUE_PTR(30U, (void *)chartInstance->c1_timings); |
| 19805 | _SFD_SET_DATA_VALUE_PTR(31U, (void *)chartInstance->c1_autoXCom); |
| 19806 | _SFD_SET_DATA_VALUE_PTR(32U, (void *)chartInstance->c1_autoX_parameters); |
| 19807 | _SFD_SET_DATA_VALUE_PTR(33U, (void *)chartInstance->c1_slipUpdateCounter); |
| 19808 | _SFD_SET_DATA_VALUE_PTR(50U, (void *)chartInstance->c1_antiStallEnable); |
| 19809 | _SFD_SET_DATA_VALUE_PTR(34U, (void *) |
| 19810 | chartInstance->c1_antiStall_parameters); |
| 19811 | _SFD_SET_DATA_VALUE_PTR(35U, (void *)chartInstance->c1_antiStallFb); |
| 19812 | _SFD_SET_DATA_VALUE_PTR(36U, (void *) |
| 19813 | chartInstance->c1_gearMotorCurent_1_2); |
| 19814 | _SFD_SET_DATA_VALUE_PTR(37U, (void *)chartInstance->c1_currGear); |
| 19815 | _SFD_SET_DATA_VALUE_PTR(38U, (void *)chartInstance->c1_currTps); |
| 19816 | _SFD_SET_DATA_VALUE_PTR(39U, (void *)chartInstance->c1_currRpm); |
| 19817 | _SFD_SET_DATA_VALUE_PTR(40U, (void *)chartInstance->c1_currVhSpeed); |
| 19818 | _SFD_SET_DATA_VALUE_PTR(41U, (void *)chartInstance->c1_currSlip); |
| 19819 | _SFD_SET_DATA_VALUE_PTR(42U, (void *)chartInstance->c1_currSlipTarget); |
| 19820 | _SFD_SET_DATA_VALUE_PTR(43U, (void *)chartInstance->c1_pidSubMode); |
| 19821 | _SFD_SET_DATA_VALUE_PTR(51U, (void *)chartInstance->c1_pidCounter); |
| 19822 | _SFD_SET_DATA_VALUE_PTR(44U, (void *)chartInstance->c1_I1_L); |
| 19823 | _SFD_SET_DATA_VALUE_PTR(45U, (void *)chartInstance->c1_I2_L); |
| 19824 | _SFD_SET_DATA_VALUE_PTR(46U, (void *)chartInstance->c1_canErrorCom); |
| 19825 | _SFD_SET_DATA_VALUE_PTR(23U, (void *)&chartInstance->c1_lastTryShift); |
| 19826 | _SFD_SET_DATA_VALUE_PTR(52U, (void *)chartInstance->c1_rpmAccTarget); |
| 19827 | _SFD_SET_DATA_VALUE_PTR(1U, (void *)&chartInstance->c1_lastAacCom); |
| 19828 | _SFD_SET_DATA_VALUE_PTR(3U, (void *)&chartInstance->c1_lastShiftCom); |
| 19829 | _SFD_SET_DATA_VALUE_PTR(2U, (void *)&chartInstance->c1_lastAutoXCom); |
| 19830 | _SFD_SET_DATA_VALUE_PTR(0U, (void *)&chartInstance->c1_buzzerCounter); |
| 19831 | _SFD_SET_DATA_VALUE_PTR(55U, (void *) |
| 19832 | &chartInstance->c1_GEAR_COMMAND_NEUTRAL_UP); |
| 19833 | _SFD_SET_DATA_VALUE_PTR(54U, (void *) |
| 19834 | &chartInstance->c1_GEAR_COMMAND_NEUTRAL_DOWN); |
| 19835 | _SFD_SET_DATA_VALUE_PTR(56U, (void *)&chartInstance->c1_GEAR_COMMAND_UP); |
| 19836 | _SFD_SET_DATA_VALUE_PTR(53U, (void *) |
| 19837 | &chartInstance->c1_GEAR_COMMAND_DOWN); |
| 19838 | _SFD_SET_DATA_VALUE_PTR(59U, (void *) |
| 19839 | &chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_UP); |
| 19840 | _SFD_SET_DATA_VALUE_PTR(58U, (void *) |
| 19841 | &chartInstance->c1_b_GEAR_COMMAND_NEUTRAL_DOWN); |
| 19842 | _SFD_SET_DATA_VALUE_PTR(60U, (void *) |
| 19843 | &chartInstance->c1_b_GEAR_COMMAND_UP); |
| 19844 | _SFD_SET_DATA_VALUE_PTR(57U, (void *) |
| 19845 | &chartInstance->c1_b_GEAR_COMMAND_DOWN); |
| 19846 | _SFD_SET_DATA_VALUE_PTR(61U, (void *)&chartInstance->c1_AAC_WORK_RATE_ms); |
| 19847 | _SFD_SET_DATA_VALUE_PTR(4U, (void *)&chartInstance->c1_aacCounter); |
| 19848 | _SFD_SET_DATA_VALUE_PTR(6U, (void *)&chartInstance->c1_aac_clutchValue); |
| 19849 | _SFD_SET_DATA_VALUE_PTR(5U, (void *)&chartInstance->c1_aac_clutchStep); |
| 19850 | _SFD_SET_DATA_VALUE_PTR(7U, (void *)&chartInstance->c1_aac_dtRelease); |
| 19851 | _SFD_SET_DATA_VALUE_PTR(64U, (void *)&chartInstance->c1_DEF_RAMP_START); |
| 19852 | _SFD_SET_DATA_VALUE_PTR(63U, (void *)&chartInstance->c1_DEF_RAMP_END); |
| 19853 | _SFD_SET_DATA_VALUE_PTR(65U, (void *)&chartInstance->c1_DEF_RAMP_TIME); |
| 19854 | _SFD_SET_DATA_VALUE_PTR(66U, (void *) |
| 19855 | &chartInstance->c1_DEF_RPM_LIMIT_1_2); |
| 19856 | _SFD_SET_DATA_VALUE_PTR(67U, (void *) |
| 19857 | &chartInstance->c1_DEF_RPM_LIMIT_2_3); |
| 19858 | _SFD_SET_DATA_VALUE_PTR(68U, (void *) |
| 19859 | &chartInstance->c1_DEF_RPM_LIMIT_3_4); |
| 19860 | _SFD_SET_DATA_VALUE_PTR(69U, (void *) |
| 19861 | &chartInstance->c1_DEF_RPM_LIMIT_4_5); |
| 19862 | _SFD_SET_DATA_VALUE_PTR(70U, (void *) |
| 19863 | &chartInstance->c1_DEF_SPEED_LIMIT_1_2); |
| 19864 | _SFD_SET_DATA_VALUE_PTR(71U, (void *) |
| 19865 | &chartInstance->c1_DEF_SPEED_LIMIT_2_3); |
| 19866 | _SFD_SET_DATA_VALUE_PTR(72U, (void *) |
| 19867 | &chartInstance->c1_DEF_SPEED_LIMIT_3_4); |
| 19868 | _SFD_SET_DATA_VALUE_PTR(73U, (void *) |
| 19869 | &chartInstance->c1_DEF_SPEED_LIMIT_4_5); |
| 19870 | _SFD_SET_DATA_VALUE_PTR(62U, (void *)&chartInstance->c1_ACC_CODE); |
| 19871 | _SFD_SET_DATA_VALUE_PTR(74U, (void *) |
| 19872 | &chartInstance->c1_AUTOX_WORK_RATE_ms); |
| 19873 | _SFD_SET_DATA_VALUE_PTR(8U, (void *)&chartInstance->c1_autoXCounter); |
| 19874 | _SFD_SET_DATA_VALUE_PTR(10U, (void *) |
| 19875 | &chartInstance->c1_autoX_clutchValue); |
| 19876 | _SFD_SET_DATA_VALUE_PTR(9U, (void *)&chartInstance->c1_autoX_clutchStep); |
| 19877 | _SFD_SET_DATA_VALUE_PTR(11U, (void *)&chartInstance->c1_autoX_dtRelease); |
| 19878 | _SFD_SET_DATA_VALUE_PTR(75U, (void *) |
| 19879 | &chartInstance->c1_b_AUTOX_WORK_RATE_ms); |
| 19880 | _SFD_SET_DATA_VALUE_PTR(12U, (void *)&chartInstance->c1_b_autoXCounter); |
| 19881 | _SFD_SET_DATA_VALUE_PTR(14U, (void *) |
| 19882 | &chartInstance->c1_b_autoX_clutchValue); |
| 19883 | _SFD_SET_DATA_VALUE_PTR(13U, (void *) |
| 19884 | &chartInstance->c1_b_autoX_clutchStep); |
| 19885 | _SFD_SET_DATA_VALUE_PTR(15U, (void *) |
| 19886 | &chartInstance->c1_b_autoX_dtRelease); |
| 19887 | _SFD_SET_DATA_VALUE_PTR(16U, (void *)&chartInstance->c1_ticksCounter); |
| 19888 | _SFD_SET_DATA_VALUE_PTR(76U, (void *)&chartInstance->c1_data); |
| 19889 | _SFD_SET_DATA_VALUE_PTR(17U, (void *)&chartInstance->c1_counterWait); |
| 19890 | _SFD_SET_DATA_VALUE_PTR(18U, (void *)&chartInstance->c1_lastCom); |
| 19891 | _SFD_SET_DATA_VALUE_PTR(19U, (void *)&chartInstance->c1_startCounter); |
| 19892 | _SFD_SET_DATA_VALUE_PTR(20U, (void *)&chartInstance->c1_timerCounter); |
| 19893 | _SFD_SET_DATA_VALUE_PTR(21U, (void *)&chartInstance->c1_b_counterWait); |
| 19894 | } |
| 19895 | } |
| 19896 | } |
| 19897 | } |
| 19898 | |
| 19899 | static const char* sf_get_instance_specialization(void) |
| 19900 | { |
| 19901 | return "srj7xHgy15kFbhIXyeRBAxD"; |
| 19902 | } |
| 19903 | |
| 19904 | static void sf_opaque_initialize_c1_GCU_Model_genCode(void *chartInstanceVar) |
| 19905 | { |
| 19906 | chart_debug_initialization(((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19907 | chartInstanceVar)->S,0); |
| 19908 | initialize_params_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19909 | chartInstanceVar); |
| 19910 | initialize_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19911 | chartInstanceVar); |
| 19912 | } |
| 19913 | |
| 19914 | static void sf_opaque_enable_c1_GCU_Model_genCode(void *chartInstanceVar) |
| 19915 | { |
| 19916 | enable_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19917 | chartInstanceVar); |
| 19918 | } |
| 19919 | |
| 19920 | static void sf_opaque_disable_c1_GCU_Model_genCode(void *chartInstanceVar) |
| 19921 | { |
| 19922 | disable_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19923 | chartInstanceVar); |
| 19924 | } |
| 19925 | |
| 19926 | static void sf_opaque_gateway_c1_GCU_Model_genCode(void *chartInstanceVar) |
| 19927 | { |
| 19928 | sf_gateway_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19929 | chartInstanceVar); |
| 19930 | } |
| 19931 | |
| 19932 | static const mxArray* sf_opaque_get_sim_state_c1_GCU_Model_genCode(SimStruct* S) |
| 19933 | { |
| 19934 | return get_sim_state_c1_GCU_Model_genCode |
| 19935 | ((SFc1_GCU_Model_genCodeInstanceStruct *)sf_get_chart_instance_ptr(S));/* raw sim ctx */ |
| 19936 | } |
| 19937 | |
| 19938 | static void sf_opaque_set_sim_state_c1_GCU_Model_genCode(SimStruct* S, const |
| 19939 | mxArray *st) |
| 19940 | { |
| 19941 | set_sim_state_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19942 | sf_get_chart_instance_ptr(S), st); |
| 19943 | } |
| 19944 | |
| 19945 | static void sf_opaque_terminate_c1_GCU_Model_genCode(void *chartInstanceVar) |
| 19946 | { |
| 19947 | if (chartInstanceVar!=NULL) { |
| 19948 | SimStruct *S = ((SFc1_GCU_Model_genCodeInstanceStruct*) chartInstanceVar)->S; |
| 19949 | if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { |
| 19950 | sf_clear_rtw_identifier(S); |
| 19951 | unload_GCU_Model_genCode_optimization_info(); |
| 19952 | } |
| 19953 | |
| 19954 | finalize_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19955 | chartInstanceVar); |
| 19956 | if (!sim_mode_is_rtw_gen(S)) { |
| 19957 | ssSetModelMappingInfoPtr(S, NULL); |
| 19958 | } |
| 19959 | |
| 19960 | utFree(chartInstanceVar); |
| 19961 | if (ssGetUserData(S)!= NULL) { |
| 19962 | sf_free_ChartRunTimeInfo(S); |
| 19963 | } |
| 19964 | |
| 19965 | ssSetUserData(S,NULL); |
| 19966 | } |
| 19967 | } |
| 19968 | |
| 19969 | static void sf_opaque_init_subchart_simstructs(void *chartInstanceVar) |
| 19970 | { |
| 19971 | initSimStructsc1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19972 | chartInstanceVar); |
| 19973 | } |
| 19974 | |
| 19975 | extern unsigned int sf_machine_global_initializer_called(void); |
| 19976 | static void mdlProcessParameters_c1_GCU_Model_genCode(SimStruct *S) |
| 19977 | { |
| 19978 | int i; |
| 19979 | for (i=0;i<ssGetNumRunTimeParams(S);i++) { |
| 19980 | if (ssGetSFcnParamTunable(S,i)) { |
| 19981 | ssUpdateDlgParamAsRunTimeParam(S,i); |
| 19982 | } |
| 19983 | } |
| 19984 | |
| 19985 | if (sf_machine_global_initializer_called()) { |
| 19986 | initialize_params_c1_GCU_Model_genCode((SFc1_GCU_Model_genCodeInstanceStruct*) |
| 19987 | sf_get_chart_instance_ptr(S)); |
| 19988 | } |
| 19989 | } |
| 19990 | |
| 19991 | static void mdlSetWorkWidths_c1_GCU_Model_genCode(SimStruct *S) |
| 19992 | { |
| 19993 | ssSetInputPortDirectFeedThrough(S, 0, 1); |
| 19994 | ssSetInputPortDirectFeedThrough(S, 1, 1); |
| 19995 | ssSetInputPortDirectFeedThrough(S, 2, 1); |
| 19996 | ssSetInputPortDirectFeedThrough(S, 3, 1); |
| 19997 | ssSetInputPortDirectFeedThrough(S, 4, 1); |
| 19998 | ssSetInputPortDirectFeedThrough(S, 5, 1); |
| 19999 | ssSetInputPortDirectFeedThrough(S, 6, 1); |
| 20000 | ssSetInputPortDirectFeedThrough(S, 7, 1); |
| 20001 | ssSetInputPortDirectFeedThrough(S, 8, 1); |
| 20002 | ssSetInputPortDirectFeedThrough(S, 9, 1); |
| 20003 | ssSetInputPortDirectFeedThrough(S, 10, 1); |
| 20004 | ssSetInputPortDirectFeedThrough(S, 11, 1); |
| 20005 | ssSetInputPortDirectFeedThrough(S, 12, 1); |
| 20006 | ssSetInputPortDirectFeedThrough(S, 13, 1); |
| 20007 | ssSetInputPortDirectFeedThrough(S, 14, 1); |
| 20008 | ssSetInputPortDirectFeedThrough(S, 15, 1); |
| 20009 | ssSetInputPortDirectFeedThrough(S, 16, 1); |
| 20010 | ssSetInputPortDirectFeedThrough(S, 17, 1); |
| 20011 | ssSetInputPortDirectFeedThrough(S, 18, 1); |
| 20012 | ssSetInputPortDirectFeedThrough(S, 19, 1); |
| 20013 | ssSetInputPortDirectFeedThrough(S, 20, 1); |
| 20014 | ssSetInputPortDirectFeedThrough(S, 21, 1); |
| 20015 | ssSetInputPortDirectFeedThrough(S, 22, 1); |
| 20016 | ssSetInputPortDirectFeedThrough(S, 23, 1); |
| 20017 | ssSetInputPortDirectFeedThrough(S, 24, 1); |
| 20018 | ssSetInputPortDirectFeedThrough(S, 25, 1); |
| 20019 | ssSetInputPortDirectFeedThrough(S, 26, 1); |
| 20020 | ssSetInputPortDirectFeedThrough(S, 27, 1); |
| 20021 | ssSetInputPortDirectFeedThrough(S, 28, 1); |
| 20022 | ssSetInputPortDirectFeedThrough(S, 29, 1); |
| 20023 | ssSetInputPortDirectFeedThrough(S, 30, 1); |
| 20024 | ssSetInputPortDirectFeedThrough(S, 31, 1); |
| 20025 | ssSetInputPortDirectFeedThrough(S, 32, 1); |
| 20026 | ssSetInputPortDirectFeedThrough(S, 33, 1); |
| 20027 | ssSetInputPortDirectFeedThrough(S, 34, 1); |
| 20028 | ssSetStatesModifiedOnlyInUpdate(S, 0); |
| 20029 | ssSetBlockIsPurelyCombinatorial_wrapper(S, 0); |
| 20030 | ssMdlUpdateIsEmpty(S, 1); |
| 20031 | if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { |
| 20032 | mxArray *infoStruct = load_GCU_Model_genCode_optimization_info |
| 20033 | (sim_mode_is_rtw_gen(S), sim_mode_is_modelref_sim(S), sim_mode_is_external |
| 20034 | (S)); |
| 20035 | int_T chartIsInlinable = |
| 20036 | (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,1); |
| 20037 | ssSetStateflowIsInlinable(S,chartIsInlinable); |
| 20038 | ssSetRTWCG(S,1); |
| 20039 | ssSetSupportedForRowMajorCodeGen(S, 1); |
| 20040 | ssSetEnableFcnIsTrivial(S,1); |
| 20041 | ssSetDisableFcnIsTrivial(S,1); |
| 20042 | ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop |
| 20043 | (sf_get_instance_specialization(),infoStruct,1, |
| 20044 | "gatewayCannotBeInlinedMultipleTimes")); |
| 20045 | sf_set_chart_accesses_machine_info(S, sf_get_instance_specialization(), |
| 20046 | infoStruct, 1); |
| 20047 | sf_update_buildInfo(S, sf_get_instance_specialization(),infoStruct,1); |
| 20048 | sf_mark_output_events_with_multiple_callers(S,sf_get_instance_specialization |
| 20049 | (),infoStruct,1,31); |
| 20050 | if (chartIsInlinable) { |
| 20051 | ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); |
| 20052 | ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); |
| 20053 | ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL); |
| 20054 | ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL); |
| 20055 | ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL); |
| 20056 | ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL); |
| 20057 | ssSetInputPortOptimOpts(S, 6, SS_REUSABLE_AND_LOCAL); |
| 20058 | ssSetInputPortOptimOpts(S, 7, SS_REUSABLE_AND_LOCAL); |
| 20059 | ssSetInputPortOptimOpts(S, 8, SS_REUSABLE_AND_LOCAL); |
| 20060 | ssSetInputPortOptimOpts(S, 9, SS_REUSABLE_AND_LOCAL); |
| 20061 | ssSetInputPortOptimOpts(S, 10, SS_REUSABLE_AND_LOCAL); |
| 20062 | ssSetInputPortOptimOpts(S, 11, SS_REUSABLE_AND_LOCAL); |
| 20063 | ssSetInputPortOptimOpts(S, 12, SS_REUSABLE_AND_LOCAL); |
| 20064 | ssSetInputPortOptimOpts(S, 13, SS_REUSABLE_AND_LOCAL); |
| 20065 | ssSetInputPortOptimOpts(S, 14, SS_REUSABLE_AND_LOCAL); |
| 20066 | ssSetInputPortOptimOpts(S, 15, SS_REUSABLE_AND_LOCAL); |
| 20067 | ssSetInputPortOptimOpts(S, 16, SS_REUSABLE_AND_LOCAL); |
| 20068 | ssSetInputPortOptimOpts(S, 17, SS_REUSABLE_AND_LOCAL); |
| 20069 | ssSetInputPortOptimOpts(S, 18, SS_REUSABLE_AND_LOCAL); |
| 20070 | ssSetInputPortOptimOpts(S, 19, SS_REUSABLE_AND_LOCAL); |
| 20071 | ssSetInputPortOptimOpts(S, 20, SS_REUSABLE_AND_LOCAL); |
| 20072 | ssSetInputPortOptimOpts(S, 21, SS_REUSABLE_AND_LOCAL); |
| 20073 | ssSetInputPortOptimOpts(S, 22, SS_REUSABLE_AND_LOCAL); |
| 20074 | ssSetInputPortOptimOpts(S, 23, SS_REUSABLE_AND_LOCAL); |
| 20075 | ssSetInputPortOptimOpts(S, 24, SS_REUSABLE_AND_LOCAL); |
| 20076 | ssSetInputPortOptimOpts(S, 25, SS_REUSABLE_AND_LOCAL); |
| 20077 | ssSetInputPortOptimOpts(S, 26, SS_REUSABLE_AND_LOCAL); |
| 20078 | ssSetInputPortOptimOpts(S, 27, SS_REUSABLE_AND_LOCAL); |
| 20079 | ssSetInputPortOptimOpts(S, 28, SS_REUSABLE_AND_LOCAL); |
| 20080 | ssSetInputPortOptimOpts(S, 29, SS_REUSABLE_AND_LOCAL); |
| 20081 | ssSetInputPortOptimOpts(S, 30, SS_REUSABLE_AND_LOCAL); |
| 20082 | ssSetInputPortOptimOpts(S, 31, SS_REUSABLE_AND_LOCAL); |
| 20083 | ssSetInputPortOptimOpts(S, 32, SS_REUSABLE_AND_LOCAL); |
| 20084 | ssSetInputPortOptimOpts(S, 33, SS_REUSABLE_AND_LOCAL); |
| 20085 | ssSetInputPortOptimOpts(S, 34, SS_REUSABLE_AND_LOCAL); |
| 20086 | sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), |
| 20087 | infoStruct,1,23); |
| 20088 | sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), |
| 20089 | infoStruct,1,28); |
| 20090 | } |
| 20091 | |
| 20092 | { |
| 20093 | unsigned int outPortIdx; |
| 20094 | for (outPortIdx=1; outPortIdx<=28; ++outPortIdx) { |
| 20095 | ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); |
| 20096 | } |
| 20097 | } |
| 20098 | |
| 20099 | { |
| 20100 | unsigned int inPortIdx; |
| 20101 | for (inPortIdx=0; inPortIdx < 35; ++inPortIdx) { |
| 20102 | ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); |
| 20103 | } |
| 20104 | } |
| 20105 | |
| 20106 | sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1); |
| 20107 | sf_register_codegen_names_for_scoped_functions_defined_by_chart(S); |
| 20108 | ssSetHasSubFunctions(S,!(chartIsInlinable)); |
| 20109 | } else { |
| 20110 | } |
| 20111 | |
| 20112 | ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); |
| 20113 | ssSetChecksum0(S,(1297789585U)); |
| 20114 | ssSetChecksum1(S,(4105989974U)); |
| 20115 | ssSetChecksum2(S,(1239995913U)); |
| 20116 | ssSetChecksum3(S,(4271397656U)); |
| 20117 | ssSetmdlDerivatives(S, NULL); |
| 20118 | ssSetExplicitFCSSCtrl(S,1); |
| 20119 | ssSetStateSemanticsClassicAndSynchronous(S, true); |
| 20120 | ssSupportsMultipleExecInstances(S,1); |
| 20121 | } |
| 20122 | |
| 20123 | static void mdlRTW_c1_GCU_Model_genCode(SimStruct *S) |
| 20124 | { |
| 20125 | if (sim_mode_is_rtw_gen(S)) { |
| 20126 | ssWriteRTWStrParam(S, "StateflowChartType", "Stateflow"); |
| 20127 | } |
| 20128 | } |
| 20129 | |
| 20130 | static void mdlStart_c1_GCU_Model_genCode(SimStruct *S) |
| 20131 | { |
| 20132 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance; |
| 20133 | chartInstance = (SFc1_GCU_Model_genCodeInstanceStruct *)utMalloc(sizeof |
| 20134 | (SFc1_GCU_Model_genCodeInstanceStruct)); |
| 20135 | if (chartInstance==NULL) { |
| 20136 | sf_mex_error_message("Could not allocate memory for chart instance."); |
| 20137 | } |
| 20138 | |
| 20139 | memset(chartInstance, 0, sizeof(SFc1_GCU_Model_genCodeInstanceStruct)); |
| 20140 | chartInstance->chartInfo.chartInstance = chartInstance; |
| 20141 | chartInstance->chartInfo.isEMLChart = 0; |
| 20142 | chartInstance->chartInfo.chartInitialized = 0; |
| 20143 | chartInstance->chartInfo.sFunctionGateway = |
| 20144 | sf_opaque_gateway_c1_GCU_Model_genCode; |
| 20145 | chartInstance->chartInfo.initializeChart = |
| 20146 | sf_opaque_initialize_c1_GCU_Model_genCode; |
| 20147 | chartInstance->chartInfo.terminateChart = |
| 20148 | sf_opaque_terminate_c1_GCU_Model_genCode; |
| 20149 | chartInstance->chartInfo.enableChart = sf_opaque_enable_c1_GCU_Model_genCode; |
| 20150 | chartInstance->chartInfo.disableChart = sf_opaque_disable_c1_GCU_Model_genCode; |
| 20151 | chartInstance->chartInfo.getSimState = |
| 20152 | sf_opaque_get_sim_state_c1_GCU_Model_genCode; |
| 20153 | chartInstance->chartInfo.setSimState = |
| 20154 | sf_opaque_set_sim_state_c1_GCU_Model_genCode; |
| 20155 | chartInstance->chartInfo.getSimStateInfo = |
| 20156 | sf_get_sim_state_info_c1_GCU_Model_genCode; |
| 20157 | chartInstance->chartInfo.zeroCrossings = NULL; |
| 20158 | chartInstance->chartInfo.outputs = NULL; |
| 20159 | chartInstance->chartInfo.derivatives = NULL; |
| 20160 | chartInstance->chartInfo.mdlRTW = mdlRTW_c1_GCU_Model_genCode; |
| 20161 | chartInstance->chartInfo.mdlStart = mdlStart_c1_GCU_Model_genCode; |
| 20162 | chartInstance->chartInfo.mdlSetWorkWidths = |
| 20163 | mdlSetWorkWidths_c1_GCU_Model_genCode; |
| 20164 | chartInstance->chartInfo.callGetHoverDataForMsg = |
| 20165 | sf_opaque_get_hover_data_for_msg; |
| 20166 | chartInstance->chartInfo.extModeExec = NULL; |
| 20167 | chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL; |
| 20168 | chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL; |
| 20169 | chartInstance->chartInfo.storeCurrentConfiguration = NULL; |
| 20170 | chartInstance->chartInfo.callAtomicSubchartUserFcn = NULL; |
| 20171 | chartInstance->chartInfo.callAtomicSubchartAutoFcn = NULL; |
| 20172 | chartInstance->chartInfo.callAtomicSubchartEventFcn = NULL; |
| 20173 | chartInstance->chartInfo.debugInstance = sfGlobalDebugInstanceStruct; |
| 20174 | chartInstance->S = S; |
| 20175 | sf_init_ChartRunTimeInfo(S, &(chartInstance->chartInfo), false, 0); |
| 20176 | init_dsm_address_info(chartInstance); |
| 20177 | init_simulink_io_address(chartInstance); |
| 20178 | if (!sim_mode_is_rtw_gen(S)) { |
| 20179 | init_test_point_mapping_info(S); |
| 20180 | } |
| 20181 | |
| 20182 | chart_debug_initialization(S,1); |
| 20183 | mdl_start_c1_GCU_Model_genCode(chartInstance); |
| 20184 | } |
| 20185 | |
| 20186 | void c1_GCU_Model_genCode_method_dispatcher(SimStruct *S, int_T method, void |
| 20187 | *data) |
| 20188 | { |
| 20189 | switch (method) { |
| 20190 | case SS_CALL_MDL_START: |
| 20191 | mdlStart_c1_GCU_Model_genCode(S); |
| 20192 | break; |
| 20193 | |
| 20194 | case SS_CALL_MDL_SET_WORK_WIDTHS: |
| 20195 | mdlSetWorkWidths_c1_GCU_Model_genCode(S); |
| 20196 | break; |
| 20197 | |
| 20198 | case SS_CALL_MDL_PROCESS_PARAMETERS: |
| 20199 | mdlProcessParameters_c1_GCU_Model_genCode(S); |
| 20200 | break; |
| 20201 | |
| 20202 | default: |
| 20203 | /* Unhandled method */ |
| 20204 | sf_mex_error_message("Stateflow Internal Error:\n" |
| 20205 | "Error calling c1_GCU_Model_genCode_method_dispatcher.\n" |
| 20206 | "Can't handle method %d.\n", method); |
| 20207 | break; |
| 20208 | } |
| 20209 | } |
| 20210 | |
| 20211 | static const rtwCAPI_DataTypeMap dataTypeMap[] = { |
| 20212 | /* cName, mwName, numElements, elemMapIndex, dataSize, slDataId, isComplex, isPointer */ |
| 20213 | { "uint16_T", "uint16_T", 0, 0, sizeof(uint16_T), SS_UINT16, 0, 0 }, |
| 20214 | |
| 20215 | { "uint8_T", "uint8_T", 0, 0, sizeof(uint8_T), SS_UINT8, 0, 0 } }; |
| 20216 | |
| 20217 | static real_T sfCAPIsampleTimeZero = 0.0; |
| 20218 | static const rtwCAPI_SampleTimeMap sampleTimeMap[] = { |
| 20219 | /* *period, *offset, taskId, mode */ |
| 20220 | { &sfCAPIsampleTimeZero, &sfCAPIsampleTimeZero, 0, 0 } |
| 20221 | }; |
| 20222 | |
| 20223 | static const rtwCAPI_DimensionMap dimensionMap[] = { |
| 20224 | /* dataOrientation, dimArrayIndex, numDims*/ |
| 20225 | { rtwCAPI_SCALAR, 0, 2 } }; |
| 20226 | |
| 20227 | static const rtwCAPI_Signals testPointSignals[] = { |
| 20228 | /* addrMapIndex, sysNum, SFRelativePath, dataName, portNumber, dataTypeIndex, dimIndex, fixPtIdx, sTimeIndex */ |
| 20229 | { 0, 0, "StateflowChart/clutchCurrVal", "clutchCurrVal", 0, 1, 0, 0, 0 }, |
| 20230 | |
| 20231 | { 1, 0, "StateflowChart/MODES.ACCELERATION.ACC.aacCounter", "aacCounter", 0, 0, |
| 20232 | 0, 0, 0 }, |
| 20233 | |
| 20234 | { 2, 0, "StateflowChart/MODES.AUTOCROSS.LAUNCH.autoXCounter", "autoXCounter", |
| 20235 | 0, 0, 0, 0, 0 }, |
| 20236 | |
| 20237 | { 3, 0, "StateflowChart/MODES.ACCELERATION_PID.LAUNCH0.autoXCounter", |
| 20238 | "autoXCounter", 0, 0, 0, 0, 0 } }; |
| 20239 | |
| 20240 | static const rtwCAPI_FixPtMap fixedPointMap[] = { |
| 20241 | /* *fracSlope, *bias, scaleType, wordLength, exponent, isSigned */ |
| 20242 | { NULL, NULL, rtwCAPI_FIX_RESERVED, 64, 0, 0 } }; |
| 20243 | |
| 20244 | static const uint_T dimensionArray[] = { |
| 20245 | 1, 1 }; |
| 20246 | |
| 20247 | static rtwCAPI_ModelMappingStaticInfo testPointMappingStaticInfo = { |
| 20248 | /* block signal monitoring */ |
| 20249 | { |
| 20250 | testPointSignals, /* Block signals Array */ |
| 20251 | 4, /* Num Block IO signals */ |
| 20252 | NULL, /* Root Inputs Array */ |
| 20253 | 0, /* Num root inputs */ |
| 20254 | NULL, /* Root Outputs Array */ |
| 20255 | 0 /* Num root outputs */ |
| 20256 | }, |
| 20257 | |
| 20258 | /* parameter tuning */ |
| 20259 | { |
| 20260 | NULL, /* Block parameters Array */ |
| 20261 | 0, /* Num block parameters */ |
| 20262 | NULL, /* Variable parameters Array */ |
| 20263 | 0 /* Num variable parameters */ |
| 20264 | }, |
| 20265 | |
| 20266 | /* block states */ |
| 20267 | { |
| 20268 | NULL, /* Block States array */ |
| 20269 | 0 /* Num Block States */ |
| 20270 | }, |
| 20271 | |
| 20272 | /* Static maps */ |
| 20273 | { |
| 20274 | dataTypeMap, /* Data Type Map */ |
| 20275 | dimensionMap, /* Data Dimension Map */ |
| 20276 | fixedPointMap, /* Fixed Point Map */ |
| 20277 | NULL, /* Structure Element map */ |
| 20278 | sampleTimeMap, /* Sample Times Map */ |
| 20279 | dimensionArray /* Dimension Array */ |
| 20280 | }, |
| 20281 | |
| 20282 | /* Target type */ |
| 20283 | "float", |
| 20284 | |
| 20285 | { |
| 20286 | 1297789585U, |
| 20287 | 4105989974U, |
| 20288 | 1239995913U, |
| 20289 | 4271397656U |
| 20290 | } |
| 20291 | }; |
| 20292 | |
| 20293 | static void init_test_point_mapping_info(SimStruct *S) |
| 20294 | { |
| 20295 | rtwCAPI_ModelMappingInfo *testPointMappingInfo; |
| 20296 | void **testPointAddrMap; |
| 20297 | SFc1_GCU_Model_genCodeInstanceStruct *chartInstance = |
| 20298 | (SFc1_GCU_Model_genCodeInstanceStruct *)sf_get_chart_instance_ptr(S); |
| 20299 | init_test_point_addr_map(chartInstance); |
| 20300 | testPointMappingInfo = get_test_point_mapping_info(chartInstance); |
| 20301 | testPointAddrMap = get_test_point_address_map(chartInstance); |
| 20302 | rtwCAPI_SetStaticMap(*testPointMappingInfo, &testPointMappingStaticInfo); |
| 20303 | rtwCAPI_SetLoggingStaticMap(*testPointMappingInfo, NULL); |
| 20304 | rtwCAPI_SetInstanceLoggingInfo(*testPointMappingInfo, NULL); |
| 20305 | rtwCAPI_SetPath(*testPointMappingInfo, ""); |
| 20306 | rtwCAPI_SetFullPath(*testPointMappingInfo, NULL); |
| 20307 | rtwCAPI_SetDataAddressMap(*testPointMappingInfo, testPointAddrMap); |
| 20308 | rtwCAPI_SetChildMMIArray(*testPointMappingInfo, NULL); |
| 20309 | rtwCAPI_SetChildMMIArrayLen(*testPointMappingInfo, 0); |
| 20310 | ssSetModelMappingInfoPtr(S, testPointMappingInfo); |
| 20311 | } |
| 20312 | |